Configuration
Every config.lua option in Eleven Surfing: framework, inventory, item and command, permission, shop, board physics, rider pose, waves, weather and translations.
Everything is set in config.lua. The code is escrowed: only config.lua and the translations in locales/ can be edited. After changing the config, restart the whole server (the resource ships stream/, so don't restart it with players online).
Tip
You don't need to touch everything. To get started, Config.Locale, Config.Framework and Config.Notify are enough. Physics and wave values come already tuned.
General
| Option | Default | What it does |
|---|---|---|
Config.Locale | 'en' | Language: any file in locales/ ('en', 'es') |
Config.Framework | 'auto' | Framework for the shop (money) and the item: 'auto' (detects qbx_core, qb-core or es_extended), 'qbox', 'qbcore', 'esx' or 'none' (standalone: no shop, use Config.Command) |
Config.Inventory | 'auto' | Inventory that holds the board: 'auto' (uses ox_inventory if it's running, otherwise the framework's), 'ox', 'qb', 'esx' or 'none' |
Config.Notify | 'ox' | Notifications: 'ox' (ox_lib), 'qbcore', 'esx' or 'native' (the game's own feed) |
Config.Debug | false | Shows the board's hidden hull and a panel with speed, waves and tilt. Testing only |
Item and command
| Option | Default | What it does |
|---|---|---|
Config.Item | 'surfboard' | Item that takes the board out into the water or puts it away. false = no item needed (then set Config.Command) |
Config.Command | false | Optional chat command that does the same as using the item, e.g. 'surf' (typed as /surf). false = no command |
If you set both an item and a command, the command still requires the item in the inventory.
Who can surf
| Option | Default | What it does |
|---|---|---|
Config.RequiredAce | false | false = everyone. A string = that ACE permission is needed to take the board out |
Example so only VIPs can surf:
Config.RequiredAce = 'surfing.use'
And in server.cfg:
add_ace group.vip surfing.use allow
Climbing on and putting the board away
| Option | Default | What it does |
|---|---|---|
Config.MountKey | 'E' | Default key to climb on and off. Each player can change it in Settings > Key Bindings > FiveM |
Config.MountDistance | 3.0 | Metres from the board to be able to climb on |
Config.HoldToStore | 600 | Milliseconds holding the key to get off and put the board away |
Note
Config.MountKey is only the key a new player starts with. If a player already changed it in their settings, theirs wins.
Shop
Config.Shop adds a vendor that sells Config.Item. It charges cash first and, if there isn't enough, the bank. If the item doesn't fit in the inventory, nothing is charged. It needs a framework (Qbox, QBCore or ESX). With Config.Shop = false there's no shop.
| Key | Default | What it does |
|---|---|---|
label | 'Surf shop' | Shop name (shown on the blip and when buying) |
ped | 'a_m_y_surfer_01' | Vendor model |
coords | vector4(-1221.97, -1518.43, 3.27, 127.32) | Position and facing direction (Vespucci Beach) |
scenario | 'WORLD_HUMAN_STAND_IMPATIENT' | What the vendor does while waiting |
price | 150 | Board price |
target | 'auto' | How players talk to him: 'auto' (ox_target, then qb-target), 'ox_target', 'qb-target' or 'textui' ("press E" prompt) |
distance | 2.5 | Metres to be able to talk to the vendor |
key | 38 | GTA control used with 'textui' (38 = E) |
icon | 'fa-solid fa-water' | Icon of the ox_target / qb-target option |
blip | { sprite = 471, color = 3, scale = 0.8 } | Map icon: sprite, colour and size. false = no blip |
Board physics
Config.Physics decides how the board moves. Speeds are in metres per second (1 m/s = 3.6 km/h). If you're not sure what to change, leave it as it is.
Paddling and speed
| Key | Default | What it does |
|---|---|---|
StrokeAccel | 40.0 | Strength of each paddle stroke (W) |
StrokeWidth | 0.25 | Part of each animation loop in which the stroke pushes |
PaddleMaxSpeed | 13.0 | Top speed when paddling. Close to it, strokes push less |
MaxSpeed | 36.0 | Absolute speed cap (about 130 km/h) |
SprintStrokeMult | 3.0 | Paddling hard (Shift lying down): how much stronger each stroke is |
SprintMaxSpeed | 27.0 | Paddling hard: top speed |
Turning and grip
| Key | Default | What it does |
|---|---|---|
TurnRatePaddle | 140.0 | Degrees per second it turns lying down |
TurnRateStanding | 230.0 | Degrees per second it turns standing up |
GripPaddle | 2.8 | How well it grips the water lying down (higher = less sideways drift) |
GripStanding | 7.0 | Same, standing up |
Drag and braking
| Key | Default | What it does |
|---|---|---|
DragProne | { slow = 0.30, fast = 0.14 } | How much the water slows you lying down: slow almost stopped, fast gliding |
DragStanding | { slow = 0.15, fast = 0.012 } | Same, standing up |
GlideFrom / GlideFull | 1.2 / 4.0 | Between these two speeds it blends from slow to fast |
Brake | 1.5 | Extra braking with S |
Standing up and falling
| Key | Default | What it does |
|---|---|---|
PopUpMinSpeed | 5.0 | Speed needed to stand up (Space) |
PopUpBoost | 8.0 | Speed gained when standing up |
StallSpeed / StallTime | 1.5 / 3.0 | Standing and slower than StallSpeed for StallTime seconds (off the wave face): back to lying down |
PumpAccel | 9.0 | Pumping while standing (Shift) on flat water: how much it accelerates |
PumpFaceMult | 2.5 | Pumping on the wave face multiplies the acceleration by this |
WipeoutRoll | 55.0 | Sideways tilt (degrees) that makes you fall |
Stamina
| Key | Default | What it does |
|---|---|---|
StaminaTime | 6.0 | Seconds of effort (Shift) with full stamina |
StaminaRecover | 4.0 | Seconds it takes to refill while resting |
StaminaResume | 0.3 | When exhausted, how much must refill (30%) before you can use it again |
Rider pose
Config.Rider places the character on the board and sets the animation speeds. There are two poses: paddle (lying down) and stand (standing up).
| Key | Default | What it does |
|---|---|---|
paddle.dict / paddle.anim | 'eleven_surf@paddle' / 'paddle' | Paddling animation (custom, included) |
paddle.offset / paddle.rotation | vector3(0.0, -0.19, 1.13) / vector3(0.0, 0.0, -3.0) | Position and rotation of the character lying on the board |
paddle.speedPaddling | 2.0 | Animation speed while paddling (W) |
paddle.speedIdle | 0.3 | Not paddling: slow strokes, drifting |
paddle.speedSprint | 2.8 | Paddling hard (Shift) |
paddle.cycle | 2.0 | Seconds per animation loop |
paddle.strokes | { 0.97, 0.47 } | Points in the loop (0 to 1) where each hand goes into the water |
stand.dict / stand.anim | 'eleven_surf@stand' / 'stand' | Standing animation (custom, included) |
stand.offset | vector3(0.0, -0.45, 1.07) | Position of the standing character |
stand.rotation | vector3(0.0, 0.0, 90.0) | Rotation of the standing character. With z = 90.0 the left foot is forward ("regular"); set -90.0 for the right foot forward ("goofy") |
stand.speedPump | 3.5 | Animation speed when pumping (Shift) |
Waves
Config.Waves controls the wave push and the state of the sea.
| Key | Default | What it does |
|---|---|---|
Enabled | true | Changes the sea with the weather. false = never touch the game's waves (and /waves does nothing) |
Source | 'auto' | Where the push comes from: 'auto' (the real water surface when it moves enough, otherwise the wave model), 'water' (only the real surface) or 'model' (only the model) |
SampleDistance | 1.5 | Metres between water height samples |
MeasuredMinSlope | 0.02 | Minimum real water slope to use it in 'auto' |
FaceMinSlope | 0.015 | Slope that counts as being on the wave face |
GainPaddle | 1.5 | Push strength lying down (1.0 = real gravity) |
GainStanding | 2.4 | Push strength standing up. Raise them if waves feel weak |
Wave model (Model)
| Key | Default | What it does |
|---|---|---|
Wavelength | 32.0 | Metres between crests. The wave speed follows from this (32 m = 25 km/h) |
AmplitudeScale | 1.3 | Multiplies the wave height |
SetPeriod | 40.0 | Seconds between sets of big waves |
SetDepth | 0.4 | 0 = all waves equal; 1 = flat sea between sets |
Steepness | 0.6 | 0 = rounded wave; higher = steeper front face |
Bigger coastal waves (QuadBoost)
Raises the game's coastal waves: normal height × Multiplier × weather intensity. Everything floating in that area feels it (boats and swimmers).
| Key | Default | What it does |
|---|---|---|
Enabled | true | Turns bigger coastal waves on |
Multiplier | 2.0 | How much they're multiplied |
MaxAmplitude | 15.0 | Maximum height they can reach |
Areas | nil | nil = the whole coast. Or a list of boxes to pick beaches |
Example with a single area (use your beach's coordinates):
Areas = {
{ min = vector2(-1500.0, -1800.0), max = vector2(-1100.0, -1300.0) },
},
Weather
| Key | Default | What it does |
|---|---|---|
FollowWeather | true | The swell follows the current game weather (any weather script works) |
WeatherCheckInterval | 2000 | How often the weather is checked, in milliseconds |
DefaultIntensity | 1.0 | Intensity for weathers missing from the table |
WeatherIntensity | see below | Intensity per weather: 1.0 normal, lower calms the sea, higher makes it rougher |
WeatherIntensity defaults: EXTRASUNNY 0.6, CLEAR 0.8, NEUTRAL 1.0, SMOG 0.8, FOGGY 0.7, CLOUDS 1.2, OVERCAST 1.4, CLEARING 1.6, RAIN 2.0, THUNDER 3.0, SNOWLIGHT 1.0, SNOW 1.2, BLIZZARD 2.5, XMAS 1.0, HALLOWEEN 1.5, RAIN_HALLOWEEN 2.0, SNOW_HALLOWEEN 1.2.
Admin command
| Key | Default | What it does |
|---|---|---|
Command | 'waves' | Command to set the swell for everyone: /waves 2.0; /waves with no number follows the weather again. Needs add_ace group.admin command.waves allow. false = no command |
Advanced settings
These options place the board and make it float. Leave them as they are unless we tell you otherwise in a ticket.
| Option | Default | What it does |
|---|---|---|
Config.PhysicsModel | 'seashark' | Invisible in-game watercraft that makes the board float |
Config.HidePhysicsModel | true | Hides that watercraft |
Config.BoardProp | 'eleven_surfboard' | Board model (custom, included). In-game fallback: 'prop_surf_board_01' |
Config.BoardPropOffset | vector3(0.0, 0.0, 0.35) | Board position on top of the invisible watercraft |
Config.BoardPropRotation | vector3(0.0, 0.0, 0.0) | Board rotation |
Translations
Texts live in locales/en.json and locales/es.json. You can edit them freely.
To add a language: copy en.json under a new name (for example fr.json), translate it and set Config.Locale = 'fr'. Anything missing falls back to English.
Don't remove %s, %d or %.2f: that's where the script puts the key, the price or a number. Don't remove the ~INPUT_...~ tags either; they're the game's key icons.
"board_ready": "Board ready. Press %s next to it to climb on",
"shop_target": "Buy %s ($%d)",
Note
Need something that isn't in the config? Open a ticket on our Discord.