Jump to content

Give ped weapon broken?


OffSimmons

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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