Skip to content

Instantly share code, notes, and snippets.

@Rhodiniium
Created March 29, 2025 18:16
Fixed housing issue where anyone could take cars from your garage.
-- mythic-vehicles/client/modules/storage/storage.lua
-- Find 'OpenVehicleStorageMenu(2,' and above 'if #storedVehicles > 0 then' add the below.
local prop = Properties:Get(propertyGarage.propertyId)
if prop and prop.keys ~= nil and prop.keys[LocalPlayer.state.Character:GetData("ID")] ~= nil then
--Check if the player has access to the property garage
if not prop.keys[LocalPlayer.state.Character:GetData("ID")] then
Notification:Error('You Dont Have Access To This Property Garage')
end
else
Notification:Error('You Dont Have Access To This Property Garage')
return
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment