Giter VIP home page Giter VIP logo

fivem-boot_vehicles's Introduction

Boot Vehicles

This resource will spawn configured vehicles when the first player joins on your server. This allows the vehicles to be networked for all players to see! This resource adds roleplay when configuring vehicles to be at police stations, fire stations, etc. Just simply spawn a vehicle, drive it where you want, append it to the configuration via a command and you're done!

Share vehicle files easily, just slap the locations text file in, and add it to the meta!

Save locations/sets easily by just renaming the file and adding it to the meta, so they can keep stuff separated and organized!

The following is a showcase of the resource in action:

https://www.youtube.com/watch?v=V5jG9oEFoMA

Developers: You can add a boot_vehicles list as a file in your own resource. Simply add boot_vehicle_file 'filename.txt' to your resource meta. More files can also be added directly to the main resource instead of via an external resource.

Commands gvposa - Appends the current vehicle the player is in to the vehicle_positions.txt file inside the resource. gvpos - Prints current vehicle model hash, X, Y, Z, and heading (Use for debug purposes) gvpos_trigger - Manually triggers the vehicles to spawn.

Configuration The vehicle locations text file is located in the same location as the resource, this file is called vehicle_locations.txt.

Included are a couple example vehicle sets, you can add and remove these files in the resource meta to your liking.

After you are done setting vehicle locations please change the DEBUG variable in the cl_bootvehicles.lua to false

Big shoutout to @glitchdetector for contributing; a lot of the recent additions are all thanks to him!

fivem-boot_vehicles's People

Contributors

gamecanplay avatar glitchdetector avatar itsjarrett avatar matsn0w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fivem-boot_vehicles's Issues

Спавнятся друг на друга

1 игрок присоединяется все ок, 2-3 игрока присоединяются и авто при каждом присоединении игрока спавнятся друг на друга.

vehicles respawn when i use /revive

when I revive more cars are general, does anyone know how to fix that?

AddEventHandler(“playerSpawned”, function(spawnInfo)

if GetNumberOfPlayers() == 1 then

TriggerServerEvent("collectVehicles")
end

end)

I think the problem is in this line, when I revive the game detects that spawn and the event is executed

I don't know if the problem is only mine, but if you can help me with this, I was very grateful

Ability to set Liveries

This isn't necessarily an issue, but it would be cool if you could set which number livery the vehicle spawns in as.

Error with the script

unknown

Without wanting to disrespect your work, I think that the intructions are unclear.

You say somethin like "Share vehicle files easily, just slap the locations text file in, and add it to the meta!", and I didn't get it.

The way that I installed it was just to put it in my fivem server folder and start it in the server.cfg and then in game I got in a car and did "/gvposa" and it gave me this error.

Can you help me?

Cars despawning

Cars seem to disappear after a certain period of time. I have been leaving my debug mode enabled so I can run the trigger to bring them back.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.