[Release][ESX] Properties

Is there any way to share the keys of your appartment with your friends?

2 Likes

have this error https://imgur.com/G1CW51n

it is a good

what for hud do you use

I am getting this error when attempting to remove items from the purchased property;


If anyone has a fix or could point me in the right direction it would be greatly appreciated

1 Like

Do you have the pictures of your shop me?

how do you drop all scripts in SQL Database

There is no such thing as this in function payRent(d, h, m)

MySQL.Async.fetchScalar(‘SELECT accounts FROM users WHERE identifier = @identifier’

When using only es_extended there is no column accounts in users table. bank money is in table user_accounts. when the player is not in the server you get an error like this:

e[31m[ERROR] [MySQL] [esx_property] An error happens on MySQL for query "SELECT accounts FROM users WHERE identifier = ‘xxx’
": ER_BAD_FIELD_ERROR: Unknown column ‘accounts’ in ‘field list’

need a fix, new interpretation of esx_property server.lua for sure

and also if you add a property in sandy shores and you enter it then you look thru the window and see sky scrapers

I can’t take items from the warehouse.
How to fix ?

I have everything installed what was needed, successfully added the sql scripts, everything I have is latest versions. But the problem is that nothing from the offices.sql isn’t showing up in map. Could the problem be that for offices not all coordinates are set up? For example, for some of the offices the ‘enter’ coordinates are empty and for some offices it is something else that is empty. I just don’t want to change it to something, not knowing that maybe it is intended the way it already is. I hope that somebody could give me insight about this problem… :thinking:

Hi all do any one know how to make the propertie you own make the blip blue not white

Noob question, so if the player disconnects while inside the house and he joins back, the blips won’t actually work. I can see the one I made as the exit point however pressing E doesn’t actually teleport out.

Any ideas how I could go about fixing this?

1 Like

somebody can share and inventory hud for properties? because i cant find it

Hello guys, How could I have one property for one person?
Have anyone a solution?

I am sorry for my bad English

Hi! Please help!
Where can i find this houses?
I don’t know where it is, because it don’t show it on the map!

Read the code and figure it out. It’s all in the database mate.

same issue any update?

SCRIPT ERROR: @esx_property/server/main.lua:218: attempt to call a nil value (field ‘canCarryItem’)

202 - 228

RegisterServerEvent(‘esx_property:getItem’)
AddEventHandler(‘esx_property:getItem’, function(owner, type, item, count)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local xPlayerOwner = ESX.GetPlayerFromIdentifier(owner)

if type == 'item_standard' then


	TriggerEvent('esx_addoninventory:getInventory', 'property', xPlayerOwner.identifier, function(inventory)
		local inventoryItem = inventory.getItem(item)

		-- is there enough in the property?
		if count > 0 and inventoryItem.count >= count then
		
			-- can the player carry the said amount of x item?
			if xPlayer.canCarryItem(item, count) then
				inventory.removeItem(item, count)
				xPlayer.addInventoryItem(item, count)
				xPlayer.showNotification(_U('have_withdrawn', count, inventoryItem.label))
			else
				xPlayer.showNotification(_U('player_cannot_hold'))
			end
		else
			xPlayer.showNotification(_U('not_enough_in_property'))
		end
	end)

hi there you were able to solve this?