onPedSpawn
Event
Server and Client
Online and Offline
Not Cancellable
function(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