Is There a way for me to assoiciate this with the sql Owned
column In the Properties
table i made
im trying to make it to where if the player owns the property then that property then will not be on the market
I have set in OwnedProperties
table for the owner name to be unique, so in essence im trying to limit the ability to buy more then one property
and then have it display a blip over the house for the server to show that that house has been sold and then
how can i get that owned table to work like 0 = not owned and 1 = owned
i know this may be easy for one person but im still new to lua and i have only made one script and it was client side script
if anyone can give me helpful hints ill be grateful i do wanna learn to do this so i will take notes or any hints !!!
function ownedz(name, owned)
local property = GetProperty(name)
local entering = nil
local owned = nil
local owner = ESX.GetPlayerData().identifier
if CurrentPropertyOwner = owner and
currentProperty = property and
PropertyIsOwned then
RemoveBlip(Blips[enteringName])
Blips[enteringName] = AddBlipForCoord(entering.x, entering.y, entering.z)
SetBlipSprite(Blips[enteringName], 357)
SetBlipColour(Blips[enteringName], 1)
SetBlipAsShortRange(Blips[enteringName], true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(_U('Sold'))
EndTextCommandSetBlipName(Blips[enteringName])
end
end
Links To Photos Of Database
***Im not looking for a handout just help ***