Greetings.
I have problem with Nametag.
I'm using MTA: Paradise Role-Play gamemode.
Okay, I made one script, when I'm using: /duty, then player Nametag changes its color.
Here is script:
addCommandHandler( "duty",
function( thePlayer, commandName, r, g, b )
if exports.players:isLoggedIn( thePlayer ) then
local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( thePlayer, 2 )
if inPD and factionTag then
giveWeapon ( thePlayer, 41, 500 )
setElementHealth ( thePlayer, 100 )
setPlayerNametagColor ( thePlayer, 176, 0, 0 )
end
end
end
)
But, when I'm using: /duty its changes to red color, but after 3-5 seconds it's back on white color.
Could you guys please, with your smart brains help me?
Thanks anyway, waiting your answers. <3