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..