[FREE][ESX][RE-RELEASE] esx_realweapons with ox_inventory compatibility and added magazine object

This is my first post to the forum.
I did a little modification of old resource esx_realweapons to meet compability with ox_inventory.

Original repository: GitHub

I also added an adjustment with magazine object, so the weapon object spawned with the magazine object attached (can be configured).
Usual/officer configuration means different positioning where those would be attached (based by job), but can be same.

Framework

  • ESX

Requirement

  • ox_inventory (optional)
Screenshot

Screenshot

Screenshot

If you have idea or feedback, you can contribute to the repository.

Access here:

Other post:
[FREE][ESX][RELEASE] esx_scuba

10 Likes

rally nice work bro thank youuu

1 Like

UPDATE [1/1/2023]

  • Bring back default esx inventory compatibility, makes ox_inventory become optional
1 Like

why after restarting the server I have to restart the resource manually?

Are you sure did not miss to start the resource in the server config file?

Yes of course, but still I have to do it manually in game

Hi, can you see is there any error of the resource in server console when starting the server? or client console when login to the server?

No, there is no error that’s the problem, I can not understand.

Same here, no errors, but script only works if player connects to server and we restart the script. If player disconnects and comes back he will not have any weapons on back again. Hope you can fix this because it’s a really good script :v:

Hi, what esx version are you using?

Esx Legacy

V pon., 2. jan. 2023, 20:20 je oseba wobozkyng via Cfx.re Community <thiscamefrom@fivem.net> napisala:

Yes, I mean what version of ESX Legacy? Are you using version below than 1.8.5?

1.7.0.

Hi, I made the update in the repository. You could try it out.

Working now, thank you! :muscle:

1 Like

UPDATE [3/1/2023]

  • Fixed compatibility issue with older version ESX-Legacy.
  • Updated and added more weapons config (included DLC weapons).

I tried the new update but I’m still having problems getting it to work. I get an error for /main lua:176 and under that it says an error occurred when calling export ‘search’ in resource ox inventory

Hi, could you provide more information about what esx and ox_inventory version are you using?

Ox inventory is v 2.12.2
and extended is v 1.8.5
Hevent updated either in a while I see you fixed compatibility issues with older versions of esx legacy so do I just need to update ox inventory?

I updated ox and I don’t see the errors anymore but it’s still not working