Upcoming API features

From GT-MP
Jump to: navigation, search

Upcoming API features

Serverside

Added

Changed

  • Changed setPlayerWeaponAmmo returns a bool now instead of void
  • Changed removePlayerWeapon returns a bool now instead of void
  • Changed givePlayerWeapon returns a int now instead of void
  • Changed PedHash.BoatStaff01F's value from 848542878 to 848542158
  • Changed PedHash.Rashkovsky's value from 940326374 to 940330470
  • Changed PedHash.Corpse01's name to PedHash.Corpse01UMY
  • Changed PedHash.Corpse02's name to PedHash.Corpse02UFY
  • Changed PedHash.Drowned's name to PedHash.DeadHooker, PedHash.Drowned isn't removed but it will be a different model
  • Changed WeaponHash.Golfclub's name to WeaponHash.GolfClub
  • Changed WeaponHash.Poolcue's name to WeaponHash.PoolCue
  • Changed WeaponHash.Battleaxe's name to WeaponHash.BattleAxe
  • Changed WeaponHash.Autoshotgun's name to WeaponHash.SweeperShotgun
  • Changed WeaponHash.SawnoffShotgun's name to WeaponHash.SawnOffShotgun
  • Changed WeaponHash.Pipebomb's name to WeaponHash.PipeBomb
  • Changed WeaponHash.CompactLauncher's name to WeaponHash.CompactGrenadeLauncher
  • Renamed getVehicleLiverys to getVehicleLiveries.
  • getPlayerClothesDrawable, getPlayerClothesTexture, getPlayerAccessoryDrawable, getPlayerAccessoryTexture will return -1 instead of 0 when there isn't a clothing/accessory set on the specified slot

Removed

Clientside

Added

Changed

  • Changed setPlayerHeadOverlayColor method's last parameter to int secondColorId from float opacity
  • Changed setPlayerBeard method's parameters to (LocalHandle player, int id, int colorId, int secondColorId, double opacity) from (LocalHandle player, int id, int colorId, float opacity)
  • Changed setPlayerChestHair method's parameters to (LocalHandle player, int id, int colorId, int secondColorId, double opacity) from (LocalHandle player, int id, int colorId, float opacity)
  • Changed setPlayerEyebrows method's parameters to (LocalHandle player, int id, int colorId, int secondColorId, double opacity) from (LocalHandle player, int id, int colorId, float opacity)
  • Changed playPlayerAnimation method's parameters to (LocalHandle player, string animDict, string animName, int flag, int duration = -1) from (string animDict, string animName, int flag, int duration = -1)
  • waitUntilCefBrowserLoaded will return true/false depending on the page being loaded successfully.

Removed

Shared (Client and Server)

Added