I try to change the script to only one owner per house, but not work how i would like.
in en.lua i made a new argument [‘ownedby’]=‘This house is already bought by someone’,
In server.lua i tried to add this to buy and rent method:
if owner ~= nil then
xPlayer.showNotification(_U(‘ownedby’))
else
When i change the ~= to == the ownedby is written to screen, but with ~= still can buy every house.
After that i tried to change in client side main.lua to this what don’t work too
if not Config.EnablePlayerManagement and owner == nil then
table.insert(elements, {label = _U(‘buy’, ESX.Math.GroupDigits(property.price)), value = ‘buy’})
If somebody know the correct methods and share with me(us if others still need the solution) i’ll thanks a lot.