myGarage - Mileage, Property/Job Garages, AdvancedParking support and more

i think the problem is extended?..

Hey,

your script is not activated. Please be sure you have the script in your asstets on your FiveM Keymaster and that your Server license key is on the same Cfx.re account as the asset.

I can’t use /createGarage to create a garage

1 Like

Hey,

then you don’t have the correct job from the Config

vehicles body and engine Health was not saved…

myGarage - Update - 01.04.2022

  • Added the option to restrict the revoke function for access in job garages
-- For job garages
Config.canPlayersRevokeJobAccess = true
Config.requiredRankToRevokeAccess = {
    'chief',
    'boss',
}

Getting an issue when adding new garages… they seem to work and the ped spawns but as I approach the ped to open the garage menu the ped despawns. Then when i move away again the ped reappears. This is only happening with garages Iv’e added to the database others are fine.

Iv’e narrowed the issue down to possibly these lines of code line 251-256 in the client.lua…

       if (not isNearGarage and isNPCLoaded) then
           DeleteEntity(NPCPed)
           SetModelAsNoLongerNeeded(GetHashKey(Config.NPCPedModel))
           isNPCLoaded = false
       end

When I comment this out the ped stops disspearing but the prompt to open the garage still does not appear on only the new garages I add to the map regardless of whether I manually enter the garage into the database or use /garageassist.

Please if someone could help me out not sure what is causing this but it’s delaying our server launch and I am pretty unsure what is causing this issue.
Thanks

Hey,

when you add garages with /garageAssist, you have to add some details in the database.
The garageAssist will only set the positions, but other details have to be set up then manually in the database.
Wehn this isn’t done the described case would occur. Maybe you can check this.

Best regards,
Luis

The script is awesome! <3
its modular, easy accessible, and pretty good to work with in code. i love it!

1 Like

myGarage - Update - 04.07.2022

  • Enhanced the location description for vehicles, which are in other garages (now it’s the label and not the database name anymore)
  • Added the option to set up an individual NPC model for every garage and impound
  • Added Impounds for boats and aircrafts to the default sql file
  • Added a /mileage command to myGarage to show the mileage of your current car

You are supposed to perform this sql command in your database to add the new columns:

ALTER TABLE `mygarage`
    ADD COLUMN `NPC` VARCHAR(255) NULL DEFAULT NULL AFTER `NPCPosition`;

ALTER TABLE `mygarage_impound`
    ADD COLUMN `NPC` VARCHAR(255) NULL DEFAULT NULL AFTER `impoundFee`;
1 Like

image

myGarage - Update V. 2.0.

  • Added a nickname system to myGarage: You can now set up a nickname in all public garages. This is always optional!
  • Added full** support for VehicleKeyChain**: You can now access, store and get all vehicles from your friends.
  • Since the **deformation **is no longer saved in AdvancedParking it’s now fully managed through myGarage. You can enable/disable this option in the Config.
  • Added the option to** transfer vehicles **from public garages to other public garages (Of course this can be disabled in the Config)

You are supposed to perform this sql command in your database to add the new columns:

ALTER TABLE `owned_vehicles` ADD COLUMN IF NOT EXISTS `nickname` varchar(50);

myVehicleShop - Update - 26.10.2022

  • Added new options for custom garage scripts in the Config
-- CUSTOM GARAGE SUPPORT
Config.useMyGarage = false
Config.useAdvancedGarage = false
Config.useDNZGarage = false
Config.useLoaf_Garage = false

I can’t join Discord

Hey,

then notify me per PN with your question

Store the good in the garage ,In taking it out ,Broken,Go to Impound and get it is good

Update - 15.06.2023

  • fixed that NPC weren’t spawned when they were to near each other

myGarage - Update - 05.08.2023

  • Added new config options (to enable markers instead of NPCs or both):
Config.useMarker = false
Config.useNPCPeds = true

Das Script sieht sehr nice aus und funktioniert auch ohne Probleme

1 Like

myGarage - Update - 17.08.2023

  • NPCs do work now like before the last update.