Installation
This resource has no dependencies and can be run with any framework, or completely standalone.
Requirements
- FiveM server
- No additional dependencies required
Installation Steps
Step 1: Download the Resource
Download legends_driveby from your Keymaster grants or the store.
Step 2: Extract to Resources
Place the legends_driveby folder into your server's resources directory.
resources/
└── legends_driveby/
├── fxmanifest.lua
├── config.lua
├── client/
│ ├── client.lua
│ └── fps.lua
└── server/
└── server.luaImportant: The resource folder must be named exactly legends_driveby. The resource will not function if renamed.
Step 3: Add to Server Config
Add the following line to your server.cfg:
ensure legends_drivebyStep 4: Configure (Optional)
Customize the drive-by behavior in config.lua. See the Configuration page for all options.
Step 5: Restart Server
Restart your server or use the refresh and ensure legends_driveby commands.
Default Controls
| Action | Default Key | Notes |
|---|---|---|
| Toggle Drive-by | G | Can be changed by players in FiveM Settings > Keybinds |
Players can customize their keybind at any time via ESC > Settings > Keybinds > FiveM. The default keybind only applies to players who haven't set a custom one.
Verification
After installation:
- Enter a vehicle as a passenger (not driver)
- Press G (or your configured key)
- Your character should lean out of the vehicle
- Press G again to return to normal position
Need help? Join our Discord (opens in a new tab) and open a support ticket!