Created
March 29, 2025 18:16
Fixed housing issue where anyone could take cars from your garage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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