onPedSpawn

Revision as of 01:26, 17 September 2020 by Vortrex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Event Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Not Cancellable

Available since Server 1.0.0, Client 1.0.0

function(Event event, Ped ped)

The onPedSpawn event is invoked when a ped spawns.

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