PivityGmodStore

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.