esx_datastore
use datastore with a simple way
Get shared datastore
rcore = exports.rcore
rcore:getDatastore('society_police', function(store)
if store then
local value = store.get('weapons')
--Do something will value
store.set('weapons', value)
end
end)Get player datastore
rcore = exports.rcore
rcore:getPlayerDatastore(identifier, 'property', function(store)
if store then
local dress = store.get('dressing')
--Do something with variable
store.set('dressing', dress)
end
end)Create datastore
Last updated