Maurize Posted January 18, 2012 Share Posted January 18, 2012 Is it possible to trigger a client ped to server, so i can give the clientside ped a weapon for example? Link to comment
DakiLLa Posted January 18, 2012 Share Posted January 18, 2012 As far as I know, you can give weapons only to peds that have been created server-side. Link to comment
Al3grab Posted January 18, 2012 Share Posted January 18, 2012 yes its possible using triggerServerEvent Example : -- Client-Side local myped = createPed(46,0,0,3) triggerServerEvent("giveWeaponToMyPed",myped,myped) --++ Server Side ++-- addEvent("giveWeaponToMyPed",true) addEventHandler("giveWeaponToMyPed",root,function(thePed) giveWeapon(thePed,31) end ) Link to comment
Maurize Posted January 18, 2012 Author Share Posted January 18, 2012 Al3GRAB Your's doensn't work ... // Okay found another way to get it to work ;D Link to comment
Al3grab Posted January 18, 2012 Share Posted January 18, 2012 Al3GRAB Your's doensn't work ... note that myped is only for example , you have to do the same with your ped . // Okay found another way to get it to work ;D good luck then 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