Jump to content

is this correct?


Recommended Posts

why you don't test it and tell us the result?

i am not sure about the argument 'thePlayer'

because you didn't show the entire code.

why dont you just help the guy , if you cant dont post

He already helped, read before post these type of things.

Link to comment
why you don't test it and tell us the result?

i am not sure about the argument 'thePlayer'

because you didn't show the entire code.

why dont you just help the guy , if you cant dont post

He already helped, read before post these type of things.

He hlped me a lot. but i didnt understnd the sentence: "because you didn't show the entire code" this is the entire code

Link to comment
for _, thePlayer in ipairs (getElementsByType("player")) do 
local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) 
if (gang == "SWAT" ) then 
setPedStat ( thePlayer , 24, 200 ) 
end 
end 

Maybe this will work

Link to comment
why you don't test it and tell us the result?

i am not sure about the argument 'thePlayer'

because you didn't show the entire code.

why dont you just help the guy , if you cant dont post

STFU.

blazy@ i think he need it with event onPlayerSpawn.

Link to comment
for _, thePlayer in ipairs (getElementsByType("player")) do 
    local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) 
    if (gang == "SWAT" ) then 
    setPedStat ( onPlayerSpawn , 24, 200 ) 
    end 
    end 

do you mean something like this?

Link to comment
for _, thePlayer in ipairs (getElementsByType("player")) do 
    local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) 
    if (gang == "SWAT" ) then 
    setPedStat ( onPlayerSpawn , 24, 200 ) 
    end 
    end 

do you mean something like this?

Double-facepalm.jpg

Link to comment
  
function func() 
     local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( source ) ) ) 
     if (gang == "SWAT" ) then 
          setPedStat ( source, 24, 200 ) 
     end 
end 
addEventHandler("onPlayerSpawn", root, func) 
  

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...