Jump to content

[Help] Die as CJ and Spawn As Cj, Not Functioning :(


Recommended Posts

local skin = 1

function onps()
if getElementModel == 0 then
skin = 0
else
skin = 1
end
end
addEventHandler("onPlayerWasted", root, onps)
    
function onspn(source)

if skin == 0  then
setElementModel(source, 0)    
else
end
end
addEventHandler("onPlayerWasted", root, onspn)

This is a Script that is suppose to keep the skin same as CJ if Cj skin was applied when the player died ( obviously u guys will know from the code) But its or some reason not functioning , and i am not a pro either so please help me with this :)
 

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