G[S]cripts
  • G[S]cripts Documentation
  • FiveM/RedM Asset Escrow
  • Trucking Job
    • Installation
    • Commands & Exports
    • Advanced Configuration
      • shared/config.lua
      • client/edit.lua
      • server/edit.lua
  • Advanced Trailers
    • Installation
    • Commands & Exports
    • Advanced Configuration
      • shared/config.lua
      • client/edit.lua
  • Motorhomes
    • Installation
    • Commands & Exports
    • Advanced Configuration
      • shared/config.lua
      • client/edit.lua
      • client/framework/*lua
      • server/framework/*.lua
  • Moonshining
    • Installation
    • Advanced Configuration
      • config.lua
      • editable/client.lua
  • Bank Robbery
    • Installation
    • Advanced Configuration
      • config.lua
      • editable/client.lua
      • editable/server.lua
  • GANG WARS
    • Installation
    • Advanced Configuration
      • config.lua
      • editable/client.lua
      • editable/server.lua
    • Exports
Powered by GitBook
On this page
  1. Advanced Trailers

Commands & Exports

There's currently a few commands that serve some importance and two of them may or may not be disabled unless your configuration permits them.

PreviousInstallationNextAdvanced Configuration

Last updated 1 year ago


Commands

This command can be used to find the trailers offset relative to your peds current location or car you're sitting in. This can be used to setup load and static bed locations for the configuration

It requires one argument (the model name for the trailer). It will copy a string containing the offset and rotation to your clipboard

/traileroffset ModelName

Example output:

{offset = vec3(0.75281023979187, -1.0817284584045, -0.60014188289642), rotation = vec3(-3.0833566255772e-10, -1.4943803989809e-06, 1.9076843261719)}

I used “trflat” for the example below. First I created the "load" offset where vehicles can be loaded onto and off the trailer. Then I created two "bed" offsets where vehicles will be placed.