ConnorHDGP Posted August 28, 2017 Share Posted August 28, 2017 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
Zorgman Posted August 29, 2017 Share Posted August 29, 2017 Hi, I have the exact same problem with slothbot peds, so +1 Link to comment
Discord Moderators Pirulax Posted August 29, 2017 Discord Moderators Share Posted August 29, 2017 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
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