A pleasant, simple and fast no-clip script for FiveM.
Just clone this repo to your ressource folder of your FiveM server. You might also need to edit your server.cfg
to
auto-load the resource.
Remember that No Clipper doesn't do any permission management. By default, it allows EVERY player to no-clip.
To prevent this, you can set the ENABLE_TOGGLE_NO_CLIP
value in the Scripts/noclipt.lua
file to false
.
Then, you can use the exported ToggleNoClipMode
function to your liking, granted that your server loads No Clipper first.
This will effectively makes No Clipper act more like a library than a standalone ressource.
No Clipper plays, by default, different sounds while toggling no-clip mode.
To mute No Clipper, just set the ENABLE_NO_CLIP_SOUND
value to false
.
The controls are intuitive, and works just like your typical GTA controls.
Input | Controls |
---|---|
"Next Radio Station" (>) | Enable / Disable NoClip |
WASD / Left Stick | Move / Strafe |
Mouse / Right Stick | Turn |
Shift-r / A |
Go faster (Hold) |
Q | Move Up |
E | Move Down |
To toggle no-clipping, you can either use the ToggleNoClipMode
exported function or, if ENABLE_TOGGLE_NO_CLIP
is set to true
, use the F2 key.
With ENABLE_TOGGLE_NO_CLIP
set to true
, you also have access to many FiveM console commands:
Command | Does |
---|---|
\noClip <0,1> |
Enables/disables no-clipping based on the provided argument |
\+noClip |
Enables no-clipping |
\-noClip |
Disables no-clipping |
\toggleNoClip |
Toggles on or off no-clipping |
The resource also exports a ToggleNoClipMode
function that can be called to toggle no-clip from another resource.