Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to make ped shoot from car and how to make ped have beer bottle in hand

Featured Replies

Alright, 2 questions in one go. 

 

1) How do I have ped have an alcohol bottle in hand? I know it is probably something like ped.Inventory.GiveNewWeapon() but I don't know what the WeaponHash for an alcohol bottle is. I have tried to search it, did not find anything. It should be like a beer bottle, a full big beer bottle.

 

2) How do I make the ped shoot from inside the car? I have tried everything I can thing of but the pet just would not shoot at the player when inside the car. How can I fix this?

GRAY

For first one I am not sure about that but you can try this to obtain an object like bottle (Entity.AttachTo) you can also use an animation to make a ped drunk.

 

For second one you can try this native...

 

NativeFunction.Natives.SetPedCombatAttributes(suspect, 1, true);

//This allows the driver to stay in the vehicle,and he will drive the vehicle as long as it's possible. Then you can call the fight
suspect.Tasks.FightAgainst(Game.LocalPlayer.Character);

Edited by Dark Devil

  • Author
2 hours ago, Dark Devil said:

For first one I am not sure about that but you can try this to obtain an object like bottle (Entity.AttachTo) you can also use an animation to make a ped drunk.

 

For second one you can try this native...

 

NativeFunction.Natives.SetPedCombatAttributes(suspect, 1, true);

//This allows the driver to stay in the vehicle,and he will drive the vehicle as long as it's possible. Then you can call the fight
suspect.Tasks.FightAgainst(Game.LocalPlayer.Character);

Thanks, godsend

Edited by PTurtle

GRAY

  • 2 weeks later...
  • Author
On 10/13/2021 at 4:25 PM, Dark Devil said:

For first one I am not sure about that but you can try this to obtain an object like bottle (Entity.AttachTo) you can also use an animation to make a ped drunk.

 

For second one you can try this native...

 

NativeFunction.Natives.SetPedCombatAttributes(suspect, 1, true);

//This allows the driver to stay in the vehicle,and he will drive the vehicle as long as it's possible. Then you can call the fight
suspect.Tasks.FightAgainst(Game.LocalPlayer.Character);

Hey, another clarification. Is is supposed to be FightAgainst or FireWeaponAt is also fine?

GRAY

33 minutes ago, PTurtle said:

Hey, another clarification. Is is supposed to be FightAgainst or FireWeaponAt is also fine?

FireAgainst is good if you want to fire against cop

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.