Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - RegisterNetEvent('esx_eden_garage:EnableSocietyGarage')
 - AddEventHandler('esx_eden_garage:EnableSocietyGarage', function(society, bool)
 - if bool then
 - for k,v in pairs (Config.SocietyGarages) do
 - for key, value in pairs (v) do
 - if k == society then
 - exports.ft_libs:EnableArea("esx_eden_garage_area_"..k.."_deletepoint_society_"..key)
 - exports.ft_libs:EnableArea("esx_eden_garage_area_"..k.."_spawnpoint_society_"..key)
 - exports.ft_libs:EnableArea("esx_eden_garage_area_"..k.."_garage_society_"..key)
 - end
 - end
 - end
 - else
 - for k,v in pairs (Config.SocietyGarages) do
 - for key, value in pairs (v) do
 - if k == society then
 - exports.ft_libs:DisableArea("esx_eden_garage_area_"..k.."_deletepoint_society_"..key)
 - exports.ft_libs:DisableArea("esx_eden_garage_area_"..k.."_spawnpoint_society_"..key)
 - exports.ft_libs:DisableArea("esx_eden_garage_area_"..k.."_garage_society_"..key)
 - end
 - end
 - end
 - end
 - end)
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment