Jump to content

Ped shooting


ConnorHDGP

Recommended Posts

Hello! I have an issue with the ped shooting. I created a ped with a weapon but when i make him shooting,  he shoots but the bullet  goes through my body and goes through everything. It does not hurt.But when he only gets a melee weapon it works normally. What's the problem?

Link to comment
  • Discord Moderators

So, the code looks something like this:

--Server code
local ped = createPed(120,0,0,0,90)
giveWeapon(ped,30)
triggerClientEvent("someCreateiveEventNameHere",root,ped)

--Client Code
addEvent("someCreateiveEventNameHere",true)
addEventHandler("someCreateiveEventNameHere",getLocalPlayer(),function(ped)
	setPedControlState(ped,"fire",true)
end)

If not, can you give us a code?

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