first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
local radarEnabled = false
|
||||
local playerLoaded = false
|
||||
|
||||
AddEventHandler('devx_core:client:playerLoaded', function()
|
||||
playerLoaded = true
|
||||
radarEnabled = true
|
||||
end)
|
||||
|
||||
RegisterNetEvent('devx_hud:client:setVisible', function(state)
|
||||
radarEnabled = state == true
|
||||
end)
|
||||
|
||||
RegisterCommand('hud', function()
|
||||
radarEnabled = not radarEnabled
|
||||
end, false)
|
||||
|
||||
CreateThread(function()
|
||||
while true do
|
||||
Wait(0)
|
||||
DisplayRadar(playerLoaded and radarEnabled)
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user