ESX
ESX setup tutorial for "Advanced Ownable Rent Creator" script
This tutorial will help you disable your players to take out owned vehicles marked as rentable from the garage. If you don't manage to do it alone, please open ticket on our Discord Server.
What you need to find is function/event/callback in your garage's script server side where the script is getting all owned garage vehicles (esx_garage - "esx_garage:getVehiclesInParking"). Inside the function/event/callback you will find MySQL query where all vehicles from "owned_vehicles" table (usually owned_vehicles on es_extended) where owner = player's identifier. Example:
What you need to do is to inside the query selector add this code snippet:
... so it shoud look like this:
Do it for all query selectors.
Last updated