Jump to content

Skin Problem


HUNGRY:3

Recommended Posts

Hello I'm using dayz mod and i set my skin to id like 101

But after 1 min it disappears any body know how to save it ?

Code

function bitchwork(player) 
setElementModel(player,101) 
end 
addCommandHandler("fkawork", bitchwork) 

EDIT : PROBLEM FIXED

Edited by Guest
Link to comment
why not try ???
function bitchwork () 
    setPedSkin ( source, 101 ) 
end 
addCommandHandler ( "fkawork" , bitchwork ) 

or some function is removing his command.

search for

removeCommandHandler 

Did you even read the problem?

He said that after a minute it resets to whatever skin it was.

Sorry HUNGRY:3 but I can't answer this, I don't really have any experience with scripting in DayZ.

Maybe there is an element data that the DayZ gamemode is using for skin. Try using this and search for a skin ID that it may be resetting to:

local p = getPlayerFromName ( "your nick" ); 
  
for index, var in pairs ( getAllElementData ( p ) ) do 
    outputChatBox ( tostring ( index )..": "..tostring ( var ) ) 
end  

Link to comment
why not try ???
function bitchwork () 
    setPedSkin ( source, 101 ) 
end 
addCommandHandler ( "fkawork" , bitchwork ) 

or some function is removing his command.

search for

removeCommandHandler 

Did you even read the problem?

He said that after a minute it resets to whatever skin it was.

Sorry HUNGRY:3 but I can't answer this, I don't really have any experience with scripting in DayZ.

Maybe there is an element data that the DayZ gamemode is using for skin. Try using this and search for a skin ID that it may be resetting to:

local p = getPlayerFromName ( "your nick" ); 
  
for index, var in pairs ( getAllElementData ( p ) ) do 
    outputChatBox ( tostring ( index )..": "..tostring ( var ) ) 
end  

Oh okay thanks

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