local gm_state = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('gmcar', function()
gm_state = not gm_state
sampAddChatMessage('gm car: ' .. (gm_state and 'on' or 'off'), -1);
end)
while true do
wait(0)
if gm_state and isCharInAnyCar(PLAYER_PED) then
local car = storeCarCharIsInNoSave(PLAYER_PED)
setCarProofs(car, true, true, true, true, true)
end
end
end