Jump to content

Script help..


Recommended Posts

Posted

I made this script to set the player walking style 132 in the player login...but i want to set like..if the skin Girl.then set Walk style 128..and if the skin man .then set walk style 132 :)...i think i have to make a table like

local men = { 
skin = 280 
etc... 
} 
local girls = ( 
skin = 263 
etc... 
} 
  

 

 

Help please

addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        setPedWalkingStyle ( source, 132 ) 
    end 
) 
  

Posted

You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns.

Posted
You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns.

Yeah...but this table work? with skin = 280 for example? or i do setElementModel? !!

Posted
You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns.

Yeah...but this table work? with skin = 280 for example? or i do setElementModel? !!

local men = { 
skin = 280 
} 

so????

Posted
You can make two tables, then when login, check if the skin of the player is on one of these tables and set the walking style according to what it returns.

Yeah...but this table work? with skin = 280 for example? or i do setElementModel? !!

Okay okay..fixed.

.thanks

Posted
No, do it this way:
local men = 
    { 
        [ 280 ] = true, 
    } 

Okay

But i want something like Update the script...because when someone buy a new skin...or select a skin after he login in skin selector...he MUST reconnect to get the walk style on..so there's way to make it auto work everytime? like script check players skins ...not only onPlayerLogin :/

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