Add vehicle key integration modules
Introduces client-side modules for various vehicle key resources, each providing standardized GiveKeys and RemoveKeys functions. This enables compatibility with multiple vehicle key systems by abstracting their APIs behind a common interface.
This commit is contained in:
1 parent
266697b1fe
commit
179c3bad85
14 files changed
+525
No files matched your search
@@ -0,0 +1,24 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
---Gives the player (self) the keys of the specified vehicle.
|
||||
---@param vehicle number The vehicle entity handle.
|
||||
---@param plate? string The plate of the vehicle.
|
||||
---@return nil
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
print("There is no compatible vehicle key resource.")
|
||||
end
|
||||
|
||||
---Removes the keys of the specified vehicle from the player (self).
|
||||
---@param vehicle number The vehicle entity handle.
|
||||
---@param plate? string The plate of the vehicle.
|
||||
---@return nil
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
print("There is no compatible vehicle key resource.")
|
||||
end
|
||||
|
||||
VehicleKey.GetResourceName = function()
|
||||
return "default"
|
||||
end
|
||||
|
||||
return VehicleKey
|
||||
Reference in new issue
Block a user