[Release][ESX] Properties


#145

The issue with esx_property and esx_status is caused by custom JS clientside script.
Don’t be confused with NUI/resource .js files, we are talking about client_script which is JavaScript file instead of lua.

How to trace it down:
The easiest method for me was to:
cd FIVEM_RESOURCES_DIR
then

find . -name "__resource.lua" -print0 | xargs -0 grep ".js | grep client

Stop this resource and you will be fine.

Confirmed resources which are breaking the esx_status/property:

Once again, remember it’s about JS file which is defined as client side script. All of the nui js files are fine, as they are just part of the specific resource.

Thanks to @iridium from FiveM’s staff for helping out!


Server invalid ref call error [FIXED]
#146

I have a problem I can’t do anything with the properties. I edited the SQL and now nothing works. here’s a vid. and here’s my SQL…
properties.sql (19.9 KB)


#147

I’m not a genius programmer but I think those commands are for Linux if I’m not mistaken, do you by any chance know the Windows CMD or PowerShell equivalent??


#148

guys how to fix duplicate problem ?


#149

how do i fix my guns not showing up? I can put food, drugs and other stuff in my apartments inv but when i put a gun it takes it away from me and it wont show up in the apartment inv? I have no errors in my console either its all installed correctly i think.


#150

got a question, how to setup that only one player can have a property.
so if i buy a property its “closed” for other player


#151

I have the same problem, does anyone have a solution to the problem?


#152

Hi, I have a small bug on my server with this script. All the properties are the same even tho i can chose multiple model from the list. When inside one apartment if u can my view or go into no clip the interior will chnage. Here is a small video of that problem. Is there somekind of way to fix this ?


#153

@Sorrora Fix this s***t problems !

Dont sleep please …


#155

@ undamagedVirus Do you have any ideas now? I have the same issue


#156

Hello everyone, I installed correctly, is without errors. How do I add houses for sale?How do I buy houses?


#157

I cant add weapons into the houses! When i add them, and then i want to take them out they aren’t there!


#158

don’t rent this one until we fund someting to fix it


#159

Hope fix will be done soon. I really want to rent one in particular.


#160

You have the same coordinates is it may be problem like when i go my home another player can come my home from another property?


#161

my weapons are disappearing from the property, someone knows how to solve


#162

Go to server/main.lua
Replace:

TriggerEvent('esx_datastore:getDataStore', 'property', xPlayer.identifier, function(store)
		local storeWeapons = store.get('weapons') or {}
	end)

By:

TriggerEvent('esx_datastore:getDataStore', 'property', xPlayer.identifier, function(store)
      local storeWeapons = store.get('weapons')
        if storeWeapons ~= nil then
          weapons = storeWeapons
        end
    end)

This should help.


#163

dose this one work aslonf side of esx clothshop just every other one iv tried my brought clothes isn’t in there


#164

Could someone help me with this error?


#165

It says that it expected one result from the subquery but received more. Perhaps you’ve got duplicates in that mysql table?