joao1234 Posted July 16, 2013 Share Posted July 16, 2013 function createPeds () SecurityPresident1 = createPed ( 163, 1122.9949951172, -2034.0960693359, 69.893829345703 ) SecurityPresident2 = createPed ( 163, 1123.04296875, -2039.7947998047, 69.88688659668 ) SecurityPresident3 = createPed ( 164, 1239.0545654297, -2041.8630371094, 59.883392333984 ) SecurityPresident4 = createPed ( 164, 1238.9310302734, -2032.6846923828, 59.880214691162 ) setPedRotation (SecurityPresident1, -90) setPedRotation (SecurityPresident2, -90) setPedRotation (SecurityPresident3, -90) setPedRotation (SecurityPresident4, -90) setPedFrozen ( SecurityPresident1, true) setPedFrozen ( SecurityPresident2, true) setPedFrozen ( SecurityPresident3, true) setPedFrozen ( SecurityPresident4, true) giveWeapon ( SecurityPresident1, 31, 30, true) giveWeapon ( SecurityPresident2, 31, 30, true) giveWeapon ( SecurityPresident3, 31, 30, true) giveWeapon ( SecurityPresident4, 31, 30, true) end addEventHandler ("onClientResourceStart", getRootElement(), createPeds) well im getting a so stupid error and i cant solve it.. i just want to give each ped a M4 but it gives me error.. attempt to call global "giveWeapon" (a nil value) i dont know what am i doing wrong.. Link to comment
Castillo Posted July 16, 2013 Share Posted July 16, 2013 giveWeapon is a server side only function. Link to comment
joao1234 Posted July 16, 2013 Author Share Posted July 16, 2013 Well added it to the server side now no errors but it still doesnt add the weapons to the peds 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