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.

[SOLVED] Error giving weapon?

Featured Replies

I am trying to create my first callout, however I keep having an error whenever I try to give someone a gun.

Here is the code i am trying to use:

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

I read on another post to do this:

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

However that is not working either, I keep getting an error when building the code.

I hope I am not overlooking something small.. Thank's for any help you can give.

 

 

My error was simple, I had the incorrect SDK.. gg

 

Logs:

[5/5/2016 12:27:16 AM.750] LSPD First Response: ==============================
[5/5/2016 12:27:16 AM.751] LSPD First Response: UNHANDLED EXCEPTION DURING GAME FIBER TICK
[5/5/2016 12:27:16 AM.752] LSPD First Response: ------------------------------
[5/5/2016 12:27:16 AM.752] LSPD First Response: Origin: Game fiber "CalloutManager".
[5/5/2016 12:27:16 AM.753] LSPD First Response: ------------------------------
[5/5/2016 12:27:16 AM.753] LSPD First Response: Exception type: System.MissingMethodException
[5/5/2016 12:27:16 AM.753] LSPD First Response: Exception message: Method not found: 'Rage.Weapon Rage.Ped.GiveNewWeapon(Rage.WeaponAsset, Int32, Boolean)'.
[5/5/2016 12:27:16 AM.754] LSPD First Response: ------------------------------
[5/5/2016 12:27:16 AM.754] LSPD First Response: Inner exceptions:
[5/5/2016 12:27:16 AM.754] LSPD First Response: ------------------------------
[5/5/2016 12:27:16 AM.755] LSPD First Response: Stack trace:
[5/5/2016 12:27:16 AM.755] LSPD First Response: at ConchsCallouts.Callouts.GasStationRobbery.OnBeforeCalloutDisplayed()
[5/5/2016 12:27:16 AM.755] at ?????????????????????????????????????????.?????????????????????????????????????????(Callout ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 254
[5/5/2016 12:27:16 AM.756] at ?????????????????????????????????????????.?????????????????????????????????????????(Type ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 237
[5/5/2016 12:27:16 AM.756] at ?????????????????????????????????????????.?????????????????????????????????????????() in E:\GTA V\LSPD First Response\LSPD First Response\Mod\Callouts\CalloutManager.cs:line 134
[5/5/2016 12:27:16 AM.756] at Rage.GameFiber.Main()
[5/5/2016 12:27:16 AM.757] LSPD First Response: ==============================

 

Edited by UnformedCOnch91

  • 5 months later...

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.