Max+ Posted April 7, 2013 Share Posted April 7, 2013 Hello I tryed give the Ped a Weapon but it didnt work ,, ClientSide .. function start () fadeCamera(true) skin = createPed ( StartSkin, 2749.7502441406,-2232.7170410156,61.727611541748,60 ) setCameraMatrix( 2745.8266601563,-2231.1694335938,62.25520324707, 3999.9999499991,-2607.4000244141,16.1) setPedControlState(skin, 'aim_weapon', true) setPedAnimation( skin, "DANCING", AnmieID[math.random(1,5)]) Intro = playSound("sounds/Music.mp3",true) showCursor(true) showChat(false) showPlayerHudComponent ( "all", false ) end i alraedy used triggerFormClientToServer like this , triggerServerEvent('give',localPlayer) addEvent .. addEventHandler.. function(skin) giveWeapon(skin, 34, 200 ) end ... Link to comment
iPrestege Posted April 7, 2013 Share Posted April 7, 2013 triggerServerEvent('give',localPlayer,skin) You forget to add the ped ._. ? Link to comment
DiSaMe Posted April 7, 2013 Share Posted April 7, 2013 Client-side elements do not exist in the server. You can't use the client-side elements as valid element values on the server. Link to comment
Max+ Posted April 7, 2013 Author Share Posted April 7, 2013 so what i should do CrystalMv , Edit# It didn't worked , And No Errors, Link to comment
alcholistu Posted April 7, 2013 Share Posted April 7, 2013 setTimer(giveWeapon, 50, 1, skin, 29, 15000, true) Link to comment
Max+ Posted April 8, 2013 Author Share Posted April 8, 2013 alcholistu , it dosn't work , i dont know what is the problem Link to comment
iPrestege Posted April 8, 2013 Share Posted April 8, 2013 You Have To Create The Ped Server Side . Link to comment
Max+ Posted April 8, 2013 Author Share Posted April 8, 2013 i will try there is an clientside elements, that's the problem , Link to comment
iPrestege Posted April 8, 2013 Share Posted April 8, 2013 Will Now I Think You Can't Do It Client Element . Link to comment
Max+ Posted April 8, 2013 Author Share Posted April 8, 2013 I could not do it , It's ok , Thank's You All For Responding , Topick Closed , 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