Functions
๐น SERVER
๐ธ CLIENT
๐น๐ธ CarTrunk:GetVehicleMaxWeight( eVehicle )
Get the max vehicle weight.
๐น๐ธ CarTrunk:GetVehicleWeight( xVehicle )
Get the current weight of the vehicle. The argument can be the vehicle EntIndex or the vehicle entity.
๐น๐ธ CarTrunk:GetObjectWeight( eEntity )
Get the weight of an entity.
๐น๐ธ CarTrunk:AllowedToUseTrunk( pPlayer, eVehicle )
Return a boolean, true if the player is allowed to use the trunk, false if not
๐น๐ธ CarTrunk:HasTrunk( eVehicle )
Return a boolean, true if the vehicle has a trunk, false if not.
๐น๐ธ CarTrunk:IsEntityBlacklisted( eEntity )
Return a boolean, true if the entity can't be stored in the trunk, false if not.
๐น๐ธ CarTrunk:GetEntityType( eEntity )
Return the category of the entity. Currently, it can be Weapon, Ammo, Food or Miscellaneous
๐น๐ธ CarTrunk:GetVehicleTrunk( eVehicle )
Get the content of the vehicle (inventory). In clientside, you can use the EntIndex of the vehicle instead of the entity.
๐น CarTrunk:CanStoreItem( pPlayer, eVehicle, eEntity )
Return a boolean, true if the item can be stored, false if not.
๐น CarTrunk:StoreItem( pPlayer, eVehicle, eEntity )
Store the entity in the vehicle.
๐น CarTrunk:CanTakeItem( pPlayer, eVehicle )
Return a boolean, true if the entity can be taken by the player, false if not.
๐น CarTrunk:TakeItem( pPlayer, eVehicle, sClass, iID=optional )
Take out of the vehicle an item. The class of the item is required but its ID is optional.