Jump to content

[SOLVED] Error giving weapon?


Recommended Posts

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
Link to comment
Share on other sites

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...