bool gm =false
if isKeyJustPressed(VK_INSERT)then-- inv
if gm == false then
setCharProofs(playerPed,true,true,true,true,true)
writeMemory(0x96916E,1,1,false)
if isInVeh then
setCarProofs(veh,true,true,true,true,true)
end
gm = true
else
setCharProofs(playerPed,false,false,false,false,false)
writeMemory(0x96916E,1,0,false)
if isInVeh then
setCarProofs(veh,false,false,false,false,false)
end
gm = false
end
end
function doCheatWork()
local isInVeh = isCharInAnyCar(playerPed)
local veh = nil
if isInVeh then veh = storeCarCharIsInNoSave(playerPed) end
if isFuncEnabled('Inv') then
if isInVeh then
setCarProofs(veh, true, true, true, true, true)
end
if isCharDead(playerPed) then
switchFunc('Inv')
postNotification('inv disabled')
end
end
end