DaBOSS54320

Bully LUA: Functions

Apr 9th, 2016
1,405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.12 KB | None | 0 0
  1. AddBlipForCar(Vehicle, BlipIcon, VisibilitySetting) | Returns created blip
  2. AddBlipForChar(Ped, 0, BlipIcon, VisibilitySetting) | Returns created blip
  3. AreaTransitionXYZ(AreaCode, X coord, Y coord, Z coord) | Move the player and his allies/enemies to a new area and/or position
  4. BlipAddXYZ(X coord, Y coord, Z coord, BlipIcon) | Returns created blip
  5. BlipRemove(Blip) | Delete a blip
  6. CameraSetXYZ(X coord, Y coord, Z coord) | Set the position of the game camera
  7. GameGetPedStat(Ped, Stat) | Returns the value of the stat of the ped
  8. GameSetPedStat(Ped, Stat, NewValue) | Set the stat of the ped to the new value
  9. GetStickValue(StickID,ControllerID) | Returns -1.0 - 1.0 representing how much the stick is pressed
  10. IsButtonBeingPressed(ButtonID,ControllerID) | Returns true/false if the button specified was JUST pressed
  11. IsButtonBeingReleased(ButtonID,ControllerID) | Returns true/false if the button specified was JUST released
  12. IsButtonPressed(ButtonID,ControllerID) | Returns true/false if the button specified is being held down
  13. PedCreateXYZ(PedIndex, X coord, Y coord, Z coord) | Returns created ped
  14. PedDelete(Ped) | Delete a ped
  15. PedDismissAllAllies(Ped) | Dismiss all allies of the ped
  16. PedGetAllyFollower(Ped) | Returns the ped's ally follower
  17. PedGetAllyLeader(Ped) | Returns the ped's ally leader
  18. PedGetPosXYZ(Ped) | Returns the ped's position (3 values)
  19. PedGetUniqueModelStatus(PedIndex) | Returns ped's unique model status -1 = Never Spawn, 1 = One Copy, 2 = Can Have Duplicates
  20. PedHasAllyFollower(Ped) | Returns true/false if the ped has a follower
  21. PedHasAllyLeader(Ped) | Returns true/false if the ped has a leader
  22. PedInRectangle(Ped, Max X, Max Y, Min X, Min Y) | Returns true/false if ped is in the rectangle (Z coord is ignored)
  23. PedMoveToXYZ(Ped, Speed, X coord, Y coord, Z coord) | Speed: 0 = Walk, 1 = Jog, 2 = Sprint
  24. PedOverrideStat(Ped, Stat, NewValue) | Override the stat of the ped with the new value
  25. PedRecruitAlly(Ped, Ped) | 1 ped can only have 1 follower, but that ped's follower can also have 1 follower to "chain" allies
  26. PedSetEmotionTowardsPed(Ped, Ped, Emotion) | Set the 1st ped's emotion to the 2nd ped
  27. PedSetInfiniteSprint(Ped, True/False) | Set if a ped can sprint forever
  28. PedSetPedToTypeAttitude(Ped, Faction, Attitude) | Set the ped's attitude towards the faction
  29. PedSetPosXYZ(Ped, X coord, Y coord, Z coord) | Set the position of a ped
  30. PedSetTypeToTypeAttitude(Faction, Faction, Attitude) | Set the 1st faction's attitude towards the 2nd faction
  31. PedSetUniqueModelStatus(PedIndex, Unique) | Unique: -1 = Never Spawn, 1 = One Copy, 2 = Can Have Duplicates
  32. PedSetWeapon(Ped, Weapon, Ammo) | Set the weapon of the ped with the desired ammo
  33. PlayerSetControl(Control) | Control: 0 = Controls disabled, 1 = Controls enabled
  34. SoundPlayAmbientSpeechEvent(Ped, SpeechEvent) | Plays a speech event on a ped
  35. SoundStopCurrentSpeechEvent(Ped) | Makes the ped shut up
  36. VehicleCreateXYZ(VehicleIndex, X coord, Y coord, Z coord) | Returns created vehicle
  37. VehicleDelete(Vehicle) | Delete a vehicle
  38. VehicleGetPosXYZ(Vehicle) | Returns the vehicle's position (3 values)
  39. VehicleSetPosXYZ(Vehicle, X coord, Y coord, Z coord) | Set the position of a vehicle
Advertisement
Add Comment
Please, Sign In to add comment