liamknight24 Posted January 31, 2010 Share Posted January 31, 2010 if i wanted to get the player skin should i use : getElementModel, or getPedSkin, or getPlayerSkin ?? thanks for help. Link to comment
liamknight24 Posted January 31, 2010 Author Share Posted January 31, 2010 getElementModel cheers 50p i have another problem if i want to get a players weapon from a slot would it be done like this : local weapon = getPlayerWeapon ( player, 3 ) hopefully trying to get a weapon from the player and from weapon slot 3? Link to comment
50p Posted January 31, 2010 Share Posted January 31, 2010 Yes, but this is only available in client side scripts. You can't get player's weapon from specific slot in server side script. Link to comment
liamknight24 Posted January 31, 2010 Author Share Posted January 31, 2010 Yes, but this is only available in client side scripts. You can't get player's weapon from specific slot in server side script. 50p thanks again, ive never wrote a client side script before are they just the save as server sripts but changed in the meta and use some differnt functions? and also in the script i need to setAccountData and according to the wiki its a server only function, and to get the players weapon from the slot it needs to be client side so is my script not possible or can i add an event that will trigger the server setAccountData function from the server side script but if this is possible how will the server know what data to set if they are not in the same script? or is there any other getting the slot server side? thanks for the reply if you understand what i mean. Link to comment
50p Posted January 31, 2010 Share Posted January 31, 2010 You basically need to communicate client side script with server side script. So, yes, you need to use custom event. Take a look at the events tutorial http://robhol.net/guide/basics/?p=8 and you should find "Custom events and server-client communication" section at the bottom of the page. This is what you want. Link to comment
liamknight24 Posted January 31, 2010 Author Share Posted January 31, 2010 You basically need to communicate client side script with server side script. So, yes, you need to use custom event.Take a look at the events tutorial http://robhol.net/guide/basics/?p=8 and you should find "Custom events and server-client communication" section at the bottom of the page. This is what you want. 50p strikes again cheers dude Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now