Skip to content

The 7 Scripts in 7 days challange, this is what day 1 is, read the README!

License

Notifications You must be signed in to change notification settings

SSnowly/snowy_trailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snowy Trailer

Description

This script provides functionality for towing vehicles using a trailer in FiveM.

Dependencies

  • ox_lib: for prints and data management
  • ox_target: for targeting the trailer and vehicles.

Exported Functions

CreateTrailer

This function spawns a trailer and sets up the necessary interactions.

Usage

To create a trailer, use the following export in your script:

exports.snowy_trailer:CreateTrailer(position)
  • position: A vector4 or table containing the x, y, z, w coordinates where the trailer should be spawned.
  • returns the trailer entity.

Configuration

Debugging

To enable debugging, set Debug to true in configs/client.lua.

Distance Settings

The following distance settings are available in configs/client.lua:

  • SecondaryRamp: Distance from the rope where the vehicle stops when towed to the top.
  • MainRamp: Distance from the rope where the vehicle stops when towed to the bottom.

About

The 7 Scripts in 7 days challange, this is what day 1 is, read the README!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages