[OUTDATED] [PAID] Vehicle Persistent Permanent for all time and +100 players & Vehicle NPC Persistent V1.3

ok I’ll do that

1 Like

New Vidéo:

Hello top le script mais , probleme de duplication de vehicule par moment, la possibilité d’enregistré la position en bdd et une fonction “garer” sinon soucis avec les garages entreprises, ect et le /car

En tout cas bon travail.

la duplication je suis entrain de le gérer en ce moment, je vais créer et partager un github pour les correctifs.
La position en bdd serait juste horrible niveau requête, la bdd serait en pls. Vous avez toutes les informations dans le fichier json. Si vous voulez les enregistrez en bdd je ne fournirais pas de support par contre.
Pour garer le vehicule il suffit d’utiliser les triggerevent que j’ai écris, un pour sauvegarder en continu et un autres pour supprimer

The duplication I’m dealing with right now, I’ll create and share a github for the patches.
The position in db would be just horrible request level, the db would be in pls. You have all the information in the json file. If you want to save it as a db I wouldn’t provide support though.
To park the car you just use the triggerevent I wrote, one to save continuously and one to delete

1 Like

je viens de faire un update sur github normalement vous avez reçu un mail pour avoir accès. Je suis entrain de fix les dupli petit à petit

I have just made an update on github, you should have received an email to get access. I’m fixing the duplicates little by little

1 Like

Just another question, what makes yours different to this one [Release][OneSync] Enc0ded Persistent Vehicles ?

I bought and tested the one you mention and it’s just full of bugs when you have more than 100 players because the saving of vehicles is done on the server side and it’s quite messy when too many players, vehicles end up at random positions on the map or whatever.

So yes I spent more than a month to find a good solution that was tested on a server with more than 100 players

my script also saves npc vehicles that this script does not

but I’m working out some duplication issues that can arise when adding npc vehicles permanently

3 Likes

j’ai une page 404 pour ma part

il faut accepter l’invitation que tu as reçu par mail normalement

you have to accept the invitation that you received by email

Je l’ai fait mais ça me renvoie sur une page 404

envoie moi en mp ton mail github

Future Update

  • Fixed any duplicates of vehicles that might be there. this is because the vehicles become ghosts for the player and the server (In Test on my server +100players)

  • Adding a command to be able to have a marker where the vehicle with the plate in question is located. and add a trigger to get it in another scripts to do something cleaner if you need it

1 Like

I will buy this if you can add a command for admins to make vehicles perminent on their own. Not when bought I mean

You mean a command that activates or deactivates the permanent vehicles?

Yes, you enter a car or put its plate number like /makepermanent which will make it permanent and vice versa.

if you want it to be only certain vehicles, you can use the simple triggers I’ve filled in

  • To add a permanent vehicle
    TriggerEvent('harybo_permanent:registerveh', entityVeh, ForgetAfterIsNotRequired)
  • To delete a permanent vehicle
    TriggerEvent('harybo_permanent:forgetveh, entityVeh, deleteThisIsNotRequired)

Update V1.1

  • Fixing vehicles that could be duplicated
  • Added a /track command to track the position of a vehicle

/track plate

This doesn’t list any OneSync requirements/refences. Is it needed?

no need. if there is any need in the tests I do on my server to best fix the problems I encounter. I would warn

Hey there so I just purchased your script and I am having troubles to install it ahah can’t get to register a vehicle. I added your trigger to the ESX.Game.SpawnVehicle function when spawning a vehicle although it does not save it in the file. Also, the download link provided with the purchase referes to an older version of the script apparently. Could I get a hold of the updated version and some help on installing it please ?

EDIT: saving a vehicle in the file using the /car command works fine though deleting a vehicle seems a bit off

EDIT2: When using the Trigger to delete a vehicle, if using TriggerEvent(‘harybo_permanent:forgetveh’, vehicle, true) then the vehicle is not forgotten and keeps respawning. However if using TriggerEvent(‘harybo_permanent:forgetveh’, vehicle, false) the vehicle gets forgotten just fine.

EDIT3: will test it on the /dv function now

EDIT4: For it to work properly, you MUST put a wait time between the moment the vehicle gets deleted from the file and the moment it disapears in game (at least that’s how I got it to work properly)

EDIT5: if using a vehicle customisation script do not forget to uncomment the RGB color props in cl_function.lua otherwhise it will not save the color as intended

1 Like