Jump to content

Ped problem [Client-Side]


Recommended Posts

CLIENT-SIDE

ped1 = createPed( 285, 1314, -1369, 13.6, 180) 
setElementFrozen (ped1,true) 
  
function cancelPedDamage() 
    cancelEvent() 
end 
addEventHandler("onClientPedDamage", ped1, cancelPedDamage) 
  
function givePed1() 
    givePedWeapon( ped1, 31, 500, true) 
    setTimer( givePedWeapon, 1000, 1, ped1, 31, 500, true) 
end 
addEventHandler("onResourceStart", root, givePed1) 
  

No error debug. its just that when the resource starts , it spawns the ped but not holding the weapon=31=M4. I need help

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...