REE.Lib.Entity - REE-FiveM/ree-core GitHub Wiki
REE.Lib.Entity
PedRemoveHeldWeapon(ped)
This will switch the ped's currently equipped weapon to their hand (removing any weapon they're holding).
Parameters:
- ped (
float
) - The player ped to remove the weapon from
PedSpawnInVehicle(ped, model, x, y, z)
This will spawn a vehicle, making sure that it's available on the network for other players. The x
, y
, and z
parameters are all optional, and if omitted will default to the player position.
Parameters:
- ped (
float
) - The ped that the vehicle will be spawned for- model (
string
) - The model name of the vehicle to spawn- x (
nil
,float
) - The x coordinate to spawn the vehicle at- y (
nil
,float
) - The y coordinate to spawn the vehicle at- z (
nil
,float
) - The z coordinate to spawn the vehicle at