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)
|
||||
@@ -0,0 +1,10 @@
|
||||
fx_version 'cerulean'
|
||||
game 'gta5'
|
||||
|
||||
author 'Colin-Joel / DevX Studios'
|
||||
description 'DevX RP radar controller without a permanent money overlay'
|
||||
version '0.4.3'
|
||||
|
||||
client_script 'client/main.lua'
|
||||
|
||||
dependency 'devx_core'
|
||||
Reference in New Issue
Block a user