Exports
Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.
This page documents the available exports provided by the cad-carry resource. These exports allow interaction with player carrying, trunk handling, and seat placement functionality.
Player State Checks
You can directly access the following player state flags using the LocalPlayer.state object:
State Property |
Description |
|---|---|
|
Returns |
|
Returns |
|
Returns |
Carrying Functions
CarryPerson
Triggers the carry action on the nearest player.
exports['cad-carry']:CarryPerson()CancelCarry
Cancels any ongoing carry interaction, whether you are carrying or being carried.
exports['cad-carry']:CancelCarry()Trunk Interactions
GetInTrunk
Allows the player to get inside the specified vehicle's trunk.
exports['cad-carry']:GetInTrunk(vehicleEntity)Parameters:
vehicleEntityβ the target vehicle entity object.
LeaveTrunk
Allows the player to exit the trunk of the specified vehicle.
exports['cad-carry']:LeaveTrunk(vehicleEntity)Parameters:
vehicleEntityβ the target vehicle entity object.
PutInTrunk
Puts the closest player into the trunk of the specified vehicle.
exports['cad-carry']:PutInTrunk(vehicleEntity)Parameters:
vehicleEntityβ the target vehicle entity object.
RemoveTrunk
Removes a player from the trunk of the specified vehicle.
exports['cad-carry']:RemoveTrunk(vehicleEntity)Parameters:
vehicleEntityβ the target vehicle entity object.
Seat Interactions
PutInClosestSeat
Puts the closest player into the nearest available seat in the given vehicle.
exports['cad-carry']:PutInClosestSeat(vehicleEntity)Parameters:
vehicleEntityβ the target vehicle entity object.
RemoveSeat
Removes a player from a nearby seat.
exports['cad-carry']:RemoveSeat()Notes
Ensure the player is within valid range to perform these interactions.
Always validate the
vehicleEntitybefore using it in trunk/seat functions to avoid errors.Trunk and seat interactions may be restricted based on server-side logic (permissions, roles, etc).
