Jump to content

help ..


Recommended Posts

which is the error the script does not work: (

[luafunction ranks ( thePlayer )

local account = getPlayerAccount ( thePlayer )

local accountName = getAccountName ( account )

if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "|LTN" ) ) ) then --Grupo Admin--

local clan = tonumber ( clan )

setElementData ( thePlayer, "clan",":ranks/rangos/"..getElementData(thePlayer(),"level")..".png" )

triggerClientEvent("Rango",theplayer, clan)

end

end

[/lua]

Edited by Guest
Link to comment
which is the error the script does not work: (

[luafunction ranks ( thePlayer )

local account = getPlayerAccount ( thePlayer )

local accountName = getAccountName ( account )

if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "|LTN" ) ) ) then --Grupo Admin--

local clan = tonumber ( clan )

setElementData ( thePlayer, "clan",":ranks/rangos/"..getElementData(thePlayer(),"level")..".png" )

triggerClientEvent("Rango",theplayer, clan)

end

end

[/lua]

On Server Side?

Link to comment

try this , i'm not sure what are you trying to do.

function ranks ( thePlayer ) 
local account = getPlayerAccount ( thePlayer ) 
if ( account ) then 
local accountName = getAccountName ( account ) 
if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "|LTN" ) ) ) then --Grupo Admin-- 
local clan = tonumber ( clan ) 
setElementData ( thePlayer, "clan",":ranks/rangos/"..getElementData(thePlayer(),"level")..".png" ) 
triggerClientEvent("Rango",theplayer, clan) 
end 
end 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...