local displayState = true local radarState = 0 function main() if not isSampAvailable() or not isSampfuncsLoaded() then return false end while true do wait(0) if wasKeyPressed(35) then displayState = not displayState if displayState then radarState = 0 else radarState = 2 end displayHud(displayState) writeMemory(12216172, 1, radarState, true) end end end