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