tweak(resource/cache): playerId, serverId, and micro

This commit is contained in:
Linden
2022-04-14 06:44:34 +00:00
parent 760f18653d
commit c7dafe56cd

View File

@@ -1,6 +1,11 @@
local cache = {}
cache.playerId = PlayerId()
cache.serverId = GetPlayerServerId(cache.playerId)
local GetVehiclePedIsIn = GetVehiclePedIsIn
local GetPedInVehicleSeat = GetPedInVehicleSeat
local GetVehicleMaxNumberOfPassengers = GetVehicleMaxNumberOfPassengers
function cache:getVehicle()
local vehicle = GetVehiclePedIsIn(self.ped, false)
if vehicle > 0 then
@@ -43,6 +48,8 @@ function cache:set(key, value)
end
end
local GetEntityCoords = GetEntityCoords
CreateThread(function()
local num = 1
while true do