[STANDALONE] TS Object - place any objects with item without restarting, and only admin and player who place can remove it

TS Object

Place Any Object You Want With Item, Without Restarting The Server Or The Scripts. And no DB required

Preview

Preview

Feature

  • Place Any Object With Items Without Restarting The Scripts
  • Data Saved Without DB
  • 0.0 Resmon When Idle / 0.2 While Placing Items
  • Only Player Who Place The Objects or Admin Can Remove The Objects

Dependencies

  • ox_lib

How to use

  • Open file server/items.lua
  • Register Useable Items With Your Framework And Call This Function
TriggerClientEvent('uus_object:client:placeObject', source, propName, itemName)

Example Using QBX

App Screenshot

Credit

Big thanks to Joe Szymkowicz who have allowed the use of their code in Gunrack Scripts

1 Like

Be careful with data being sent to your server events.

Check player permissions when saving data, validate the input.

Anybody can trigger the removeObject event to give themselves 1 of any item.

Thanks for your feedback, I’ll try to improve it later. But maybe I need a little help on how to do the validation, is there a script I can see as an example of validation? Or maybe you can show me a little bit about how to validate? I would be very grateful if you could give me a little idea about how to validate it.

if not IsPlayerAceAllowed(playerId, 'command.placeobject') then return end

That’s enough to stop randoms from arbitrary event exceution.

alright il try to implement that, thankyou so much!

Can you share your ox_inventory?

Hey! Thank you for the release. Does it works with ox inv ? If so do you have a template for it ?