mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
feat(esx_property): Experimental saving method
This commit is contained in:
@@ -1109,6 +1109,12 @@ AddEventHandler('onResourceStop', function(ResourceName)
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('onServerResourceStop', function(ResourceName)
|
||||
if ResourceName == GetCurrentResourceName() then
|
||||
PropertySave(_U("resource_stop"))
|
||||
end
|
||||
end)
|
||||
|
||||
-- Save Properties every x Minutes
|
||||
|
||||
CreateThread(function()
|
||||
|
||||
Reference in New Issue
Block a user