OnPedSpawn: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onPedSpawn | ||
|side = shared | |||
|type = event | |type = event | ||
| | |games = iii vc sa iv | ||
| | |desc = a ped spawns | ||
| | |arg1 = Ped ped The ped that has spawned. | ||
|note = If the ped is localPlayer, then localPlayer will still be null (it's not set until after this event is triggered for it). You'll need to use a timeout to process things for localPlayer in this event. | |||
|cancel = false | |||
| | |||
}} | }} |
Latest revision as of 20:28, 19 November 2022
Event
Server and Client
Online and Offline
Not Cancellable
onPedSpawn(Event event, Ped ped)
Parameters
1) | Event | event | The event object for this event. |
2) | Ped | ped | The ped that has spawned. |
Attributes
const | This event cannot be cancelled. |
Notes
- If the ped is localPlayer, then localPlayer will still be null (it's not set until after this event is triggered for it). You'll need to use a timeout to process things for localPlayer in this event.
Examples
There aren't any examples for this event.
Compatibility
There isn't any compatibility information for this event.
Related
Server Related
OnPedCrouch
OnPedEnterVehicle
OnPedExitVehicle
OnPedFall
OnPedJump
OnPedSpawn
OnPedUncrouch
OnPedWasted
Client Related
OnPedBusted
OnPedChangeWeapon
OnPedCrouch
OnPedDead
OnPedEnteredVehicle
OnPedEnteringVehicle
OnPedEnterVehicle
OnPedExitedVehicle
OnPedExitingVehicle
OnPedExitVehicle
OnPedFall
OnPedFireProjectile
OnPedInflictDamage
OnPedJump
OnPedSpawn
OnPedStartClosingVehicleDoor
OnPedStartFightAttack
OnPedStartFightDefend
OnPedStartOpeningVehicleDoor
OnPedUncrouch
OnPedUseWeapon
OnPedWasted