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.

Give ped weapon broken?

Featured Replies

Im using code from the LSPDFR-API Example and whenever the callout runs and attempts to give the ped a weapon, It crahses. Here is my log.

Spoiler

[4/14/2016 9:33:33 PM.742] LSPD First Response: 
[4/14/2016 9:33:33 PM.743] LSPD First Response: ==============================
[4/14/2016 9:33:33 PM.744] LSPD First Response: UNHANDLED EXCEPTION DURING GAME FIBER TICK
[4/14/2016 9:33:33 PM.745] LSPD First Response: ------------------------------
[4/14/2016 9:33:33 PM.746] LSPD First Response: Origin: Game fiber "CalloutManager".
[4/14/2016 9:33:33 PM.748] LSPD First Response: ------------------------------
[4/14/2016 9:33:33 PM.749] LSPD First Response: Exception type: System.MissingMethodException
[4/14/2016 9:33:33 PM.750] LSPD First Response: Exception message: Method not found: 'Rage.Weapon Rage.Ped.GiveNewWeapon(Rage.WeaponAsset, Int32, Boolean)'.
[4/14/2016 9:33:33 PM.751] LSPD First Response: ------------------------------
[4/14/2016 9:33:33 PM.752] LSPD First Response: Inner exceptions:
[4/14/2016 9:33:33 PM.752] LSPD First Response: ------------------------------
[4/14/2016 9:33:33 PM.753] LSPD First Response: Stack trace:
[4/14/2016 9:33:33 PM.754] LSPD First Response: at AustinsCallouts.Callouts.StoreRobbery.OnBeforeCalloutDisplayed()
[4/14/2016 9:33:33 PM.755] at ?????????????????????????????????????????.?????????????????????????????????????????(Callout ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 254
[4/14/2016 9:33:33 PM.756] at ?????????????????????????????????????????.?????????????????????????????????????????(Type ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 237
[4/14/2016 9:33:33 PM.757] at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 134
[4/14/2016 9:33:33 PM.758] at Rage.GameFiber.Main()

 

and here is the code im using to give it to the ped.

//Give the robber his weapon
Robber.GiveNewWeapon("WEAPON_PISTOL", 500, true);

 

Dispatch we are Code 4. Show me 10-8.

  • Author
19 minutes ago, ainesophaur said:

What version of rage plugin are you using?

Latest.

Dispatch we are Code 4. Show me 10-8.

1 hour ago, OffSimmons said:

Latest.

Robber.Inventory.GiveNewWeapon("WEAPON_PISTOL", 500, true);

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • Author
28 minutes ago, Albo1125 said:

Robber.Inventory.GiveNewWeapon("WEAPON_PISTOL", 500, true);

 

Inventory isn't defined. It won't build.

Dispatch we are Code 4. Show me 10-8.

Make sure the ragehooksdk that your project references is the same one you're using in GTA. If your project is trying to include the ragenativesdk that it shipped with, then chances are it's not the same rage hook version you're using in game

  • Author
4 minutes ago, ainesophaur said:

Make sure the ragehooksdk that your project references is the same one you're using in GTA. If your project is trying to include the ragenativesdk that it shipped with, then chances are it's not the same rage hook version you're using in game

Alright, I'll check that.

 

Edit:

Yep that was it. Thanks.

Edited by OffSimmons

Dispatch we are Code 4. Show me 10-8.

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

Similar Content

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.