ResyncResync Vehicle Performance
Exports
This section lists all client-side and server-side exports in this script. Exports can be called from other scripts to interact with this script functionality.
Note
If you need additional exports for your implementation, please open a ticket on our Discord server.
Client Exports
hasVehicleFeature
Checks if the vehicle has a specific feature. Note: If you are passing a vehicle entity, you must be inside the vehicle to get the correct result.
local hasFeature = exports['resync_vehicle_performance']:hasVehicleFeature(vehicleOrPlate, feature)Prop
Type
Server Exports
addVehicleFunction
Adds a function to a Vehicle, based on the Player, Plate and Function Name.
exports['resync_vehicle_performance']:addVehicleFunction(source, 'ABC 123', 'hasNos') -- hasNos | hasAntiLag | hasPurge | hasLaunchControl | hasDriftremoveVehicleFunction
Removes a function from a Vehicle, based on the Plate and Function Name.
exports['resync_vehicle_performance']:removeVehicleFunction('ABC 123', 'hasNos') -- hasNos | hasAntiLag | hasPurge | hasLaunchControl | hasDrifthasVehicleFeature
Checks if the vehicle has a specific feature.
local hasFeature = exports['resync_vehicle_performance']:hasVehicleFeature(vehicleOrPlate, feature)Prop
Type