Small bug fix for head tags.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
RegisterNetEvent("delall")
|
||||
AddEventHandler("delall", function ()
|
||||
if Config.alerts then
|
||||
exports['okokNotify']:Alert("WARNING", "Vehicles will be wiped in 1 minute. Stay in your vehicle if you do not want it to be deleted.", 5000, 'warning')
|
||||
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^11 minute.^r Stay in your vehicle if you do not want it to be deleted."}})
|
||||
Citizen.Wait(30000)
|
||||
exports['okokNotify']:Alert("WARNING", "Vehicles will be wiped in 30 seconds. Stay in your vehicle if you do not want it to be deleted.", 5000, 'warning')
|
||||
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^130 seconds.^r Stay in your vehicle if you do not want it to be deleted."}})
|
||||
Citizen.Wait(25000)
|
||||
exports['okokNotify']:Alert("WARNING", "Vehicles will be wiped in 5 seconds. Stay in your vehicle if you do not want it to be deleted.", 5000, 'warning')
|
||||
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^15 seconds.^r Stay in your vehicle if you do not want it to be deleted."}})
|
||||
Citizen.Wait(5000)
|
||||
end
|
||||
@@ -70,6 +73,7 @@ AddEventHandler("delall", function ()
|
||||
end
|
||||
end
|
||||
if Config.DoneNotify then
|
||||
exports['okokNotify']:Alert("WARNING", "Vehicles have been wiped!", 5000, 'warning')
|
||||
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles have been wiped!"}})
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -78,7 +78,10 @@ function ManageHeadLabels()
|
||||
SetMpGamerTagVisibility(headDisplayId, 4, true)
|
||||
else
|
||||
headDisplayId = N_0xbfefe3321a3f5015(iPed, "", false, false, "", false )
|
||||
if has_value(staffTable,GetPlayerServerId(i)) then
|
||||
if has_value(staffTable,GetPlayerServerId(i)) and has_value(afkTable,GetPlayerServerId(i)) then
|
||||
SetMpGamerTagName(headDisplayId,DisplayAfkTag.." "..DisplayStaffTag.." "..GetPlayerServerId(i).." | "..GetPlayerName(i))
|
||||
SetMpGamerTagColour(headDisplayId, 0, 6)
|
||||
elseif has_value(staffTable,GetPlayerServerId(i)) then
|
||||
SetMpGamerTagName(headDisplayId,DisplayStaffTag.." "..GetPlayerServerId(i).." | "..GetPlayerName(i))
|
||||
SetMpGamerTagColour(headDisplayId, 0, 6)
|
||||
elseif has_value(afkTable,GetPlayerServerId(i)) then
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Leaked By: Leaking Hub | J. Snow | leakinghub.com
|
||||
|
||||
function Alert(title, message, time, type)
|
||||
SendNUIMessage({
|
||||
action = 'open',
|
||||
@@ -40,5 +38,3 @@ end)
|
||||
RegisterCommand('longtext', function()
|
||||
exports['okokNotify']:Alert("LONG MESSAGE", "Lorem ipsum dolor sit amet, consectetur adipiscing elit e pluribus unum.", 5000, 'neutral')
|
||||
end)
|
||||
|
||||
-- Leaked By: Leaking Hub | J. Snow | leakinghub.com
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Leaked By: Leaking Hub | J. Snow | leakinghub.com
|
||||
|
||||
fx_version 'adamant'
|
||||
|
||||
game 'gta5'
|
||||
@@ -19,5 +17,3 @@ files {
|
||||
}
|
||||
|
||||
export 'Alert'
|
||||
|
||||
-- Leaked By: Leaking Hub | J. Snow | leakinghub.com
|
||||
Reference in New Issue
Block a user