Jump to content

need some help


sckatchof

Recommended Posts

hi guys i have a small problem when i click start shift i want to back to my job team and skin .

when i click start shift skin work but setPlayerTeam dont work

server side :

function onStartShift () 
if source then 
  setPlayerTeam ( source, tonumber( getElementData( source, "oldteam" ) ) ) 
  setElementModel ( source, tonumber( getElementData( source, "clothesjob" ) or 0 ) ) 
outputChatBox( "Test : Start Shift",source,0,0,255 ) 
end 
end 
addEvent("onStartShift",true) 
addEventHandler("onStartShift", root, onStartShift)  

Link to comment
function onStartShift ( ) 
    setPlayerTeam ( source, getTeamFromName ( tostring ( getElementData ( source, "oldteam" ) ) ) ) -- You we're converting the data to a number. 
    setElementModel ( source, tonumber ( getElementData ( source, "clothesjob" ) or 0 ) ) 
    outputChatBox( "Test : Start Shift",source, 0, 0, 255 ) 
end 
addEvent("onStartShift",true) 
addEventHandler("onStartShift", root, onStartShift)  

Link to comment
function onStartShift ( ) 
    setPlayerTeam ( source, tostring ( getElementData ( source, "oldteam" ) ) ) -- You we're converting the data to a number. 
    setElementModel ( source, tonumber ( getElementData ( source, "clothesjob" ) or 0 ) ) 
    outputChatBox( "Test : Start Shift",source, 0, 0, 255 ) 
end 
addEvent("onStartShift",true) 
addEventHandler("onStartShift", root, onStartShift)  

thank you for help snake and still dont work

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