Coder Social home page Coder Social logo

mexalucard0 / erp_towscript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from egopvp/erp_towscript

0.0 1.0 0.0 57 KB

Highly Customisable and top working Vehicle Towing Script for FiveM

Home Page: https://egopvp.com

License: GNU General Public License v3.0

Lua 100.00%

erp_towscript's Introduction

erp_towscript

Highly Customisable and top working Vehicle Towing Script for FiveM

This Script has many many Options for you to Change the behaivour of the Tow-Truck & does work in latest FiveM builds even after all the vehicle entity changes.

** UPDATE AVAILABLE - NOW WORKING FOR SURE! **

Sorry guys, accidentally uploaded my test version isntead the one which was supposed to go live. Thanks to @0pax for pointing this out!

Features

Pretty obvious, attaching vehicles onto your Flatbed :slight_smile: Also:

  • Blacklisting vehicles from being towed
  • Job restriction (to a Job of your choice)
  • Usage via Command/Event (Command can be disabled)
  • Multiple Flatbeds with custom positioning for the towed vehicles
  • Multi-Language-Support

How to Install?

  1. Download the latest Release of erp_towscript
  2. Copy the Folder into your resources/ folder
  3. Add ensure erp_towscript to your server.cfg
  4. Add your Flatbed Vehicles to the "config.lua" file and change the Offset properly.
  5. Change your prefered Language in the "config.lua" file
  6. Change other stuff in the "config.lua" file to your preffered settings
  7. Have fun using the Script :)

Dependencies

  • es_extended - 1.x

Language Support

  • de - German | Done by me
  • en - English | Done by me
  • nl - Dutch | Thanks to @Jaccosf
  • tr - Turkish | Thanks to @Wizley#3099
  • pt - Portuguese | Thanks to @coentro

If you want to help translate this Script, feel free to do a PR :)

Config explanation

Option Description
Locale The Language of the messages send by the script
JobRestriction Whether or not only a certain ESX Job should be allowed to use the Tow-Function
NeededJob The Job needed to use the Tow-Function
EnableCommand Should the /tow Command be enabled?
VehicleRange How far away can a Car Stand behind the Flatbed to be recognized
OnlyStoppedEngines Should Vehicles with a running Engine be allowed to be Towed
FlatbedDistance The Distance a Vehicle should be teleported to when unloading it from the Flatbed
Flatbeds The list of your Flatbeds + Its offset to the Vehicles Center position when Attaching Vehicles to it.
TowBlacklist A List of vehicles not allowed to be Towed (eg. mule, monstertruck, etc.)

Adding the Event to your Menues

If you dont want to use the /tow or you simply want to add a button into your Job menue to Tow a Vehicle, you can Trigger the Script's own event for that like this:

TriggerEvent('erp_towscirpt:tow')

Does this generate Lag?

Since i got many requests on "Does this Script generate lag / how is its CPU time on resmon" i checked it and it was as i expected it: 0,00ms! image|690x12

Other Scripts

  • erp_antifalldown - Stop your Player from falling into the dark void.
  • SaltyNUI - Discourage Users without Temspeak running when using SaltyChat!
  • sitdown - Sitting made easy!

Support

If you need any kind of Support, feel free to open an Issue.

Discord - https://discord.gg/6jsHUVMh8G

Donate

If you like my work, you can Support me by donating to me

BTC - bc1qn5d5hvecydfcr7xd65z2nun7a8t6wvgc9yuuxr
WBTC - 0x411BFd32d22F2D04A40C2edFE8f5fb8E9Dc80412
ETH - 0x411BFd32d22F2D04A40C2edFE8f5fb8E9Dc80412
ZEC - t1XyjYpkBZpvTSD41toPWdzmr2UTq3KKHRT
DASH - Xs9YwqZbyaNHWJcDF1Tgn1jQJqd8XHzLyh
LTC - LMsnx3kVYAtKXJoERq51PZ367wihVmjxns

License

erp_towscript - Highly Customisable and top working Vehicle Towing Script for FiveM

Copyright (C) 2021 - EgoPvP.com

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.

erp_towscript's People

Contributors

noobkekstv avatar 0pax avatar jaccosf avatar coentro avatar

Watchers

James Cloos avatar

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.