Xeno Posted April 12, 2010 Share Posted April 12, 2010 I have a problem with this script, when i press the button on my Gui the ped doesent spawn. her is the server side script function makeped() x, y, z = getElementPosition(gMe) createPed(164, x, y, z +5 ) end function givem4 () x, y, z = getElementPosition(gMe) ped1 = createPed(164, x, y, z +5) giveWeapon(ped1, 31, 50000) end function giveso () x, y, z = getElementPosition(gMe) ped1 = createPed(164 ,x, y, z +5) giveWeapon(ped1, 26, 50000) end function givemp5 () x, y, z = getElementPosition(gMe) ped1 = createPed(164 ,x, y, z +5) giveWeapon(ped1, 29, 50000) end function giveRPG () x, y, z = getElementPosition(gMe) ped1 = createPed(164, x, y, z +5) giveWeapon(ped1, 36, 50000) end -------------------------ADD THE EVENTS! addEvent("makeped", true) addEvent("givem4", true) addEvent("giveso", true) addEvent("givemp5", true) addEvent("giveRPG", true) ---------------------ACTIVATE AND LINK THE EVENTS! addEventHandler("makeped", getRootElement(), makeped) addEventHandler("givem4", getRootElement(), givem4) addEventHandler("giveso", getRootElement(), giveso) addEventHandler("givemp5", getRootElement(), givemp5) addEventHandler("giveRPG", getRootElement(), giveRPG) Link to comment
Jason_Gregory Posted April 12, 2010 Share Posted April 12, 2010 function makeped() x, y, z = getElementPosition(gMe) createPed(164, x, y, z +5 ) end Are you triggering this Event Clientside when the Player push your Button ? And wtf is 'gMe' ? Link to comment
karlis Posted April 12, 2010 Share Posted April 12, 2010 (edited) [removed reason=wrong topic D'oh][/removed] Edited April 12, 2010 by Guest Link to comment
Jason_Gregory Posted April 12, 2010 Share Posted April 12, 2010 just set walk button state to true, and they setting animation in next frame ye, Happy Haloween - Hes not asking why for a Animation hes asking why his Bot is not spawning 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