I’m getting this error every time i try to get my weapon out of the property:
SCRIPT ERROR: @esx_property/server/main.lua:255: attempt to index a nil value (global ‘data’)
elseif type == 'item_weapon' then
TriggerEvent('esx_datastore:getDataStore', 'property', xPlayerOwner.identifier, function(store)
local storeWeapons = store.get('weapons') or {}
local weapon = storeWeapons[data.current.count] -- count is the index
if weapon then
if not xPlayer.hasWeapon(weaponName) then
table.remove(storeWeapons, data.current.count)
store.set('weapons', storeWeapons)
xPlayer.addWeapon(weapon.name, weapon.ammo)
end
end
end)
end
end)
SO! First off LOVE THE SCRIPT! It works PERFECT and have always loved it. However, I’m asking you guys for a little help; I’m currently under the impression that I can only load my saved outfits from properties I personally own. I have seen this where you can walk to the back of the clothing store and load your same outfits etc. What part of this esx_properties is the saving and managing these outfits? I was wondering because I want to use it by itself standalone - or just for anyone to walk up and access their wardrobe for free for instance so I can load/save outfits easily. Does anyone have a solution? It works perfect to load/save/manage the outfits I pay from the store in my owned properties (as the script should), but I was wondering if there’s a way to do what I’m trying to do? please be easy on me haha i’m still really new and learning etiquette. I appreciate the hard work and that this is still kickin!
Hey i have a question about rent, i basically did everyrhing and the esx works fine but i cant find the way to make the rent possible, i can buy it and acces everything, just cant figure it out how to make the rent possible. Appreciate any help
I love the script but I have problems with exiting the house after loggin out. In the database I can see last_property is saved and when I log in then I can see the circle to exit and the message to press “E” appears but I wont get teleported out. Can anyone please help me?
I imported all tables correct and I can see “last_property”… I dont get what im doing wrong