Server Exports
This is a list of the available server side exports.
GiveKeysByPlate
-- This export will give a player keys to a vehicle server side by the plate
-- plate is a string ie ("PLATENUMBER")
exports.MrNewbVehicleKeys:GiveKeysByPlate(source, plate)GiveKeys
-- This export will give a player keys to a vehicle server side
-- you must pass the player source and networkid to the vehicle
-- In this example vehicle is a variable, this should be the vehicle you want the keys for
local netId = NetworkGetNetworkIdFromEntity(vehicle)
exports.MrNewbVehicleKeys:GiveKeys(source, netId)RemoveKeysByPlate
-- This export will remove a players key to a vehicle server side
-- you must pass the player source and platestring to the vehicle
-- In this example plate is a variable, this should be the text of the plate you want to remove the keys for
-- optional: deepSearch, this will search in a keyfob if you want to make sure its removed.
local plate = "platestringhere"
exports.MrNewbVehicleKeys:RemoveKeysByPlate(source, plate, deepSearch)RemoveKeys
HasKeysByPlate
HaveKeys
SetVehicleLock
GrantRental
RemoveRental
DisableLockPickingVehicle
KeyType
UpdateKey
GetVehicleKeyList
Last updated