Jump to content

Script help..


Recommended Posts

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 
) 
  

Link to comment
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 :/

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