FiveM Documentation
Documentation
Forum
Discord
Servers
GitHub
Terms of Service
Documentation
Client manual
Console commands
Crosshair commands
Server manual
Setting up a server
Setting up a server using ZAP-Hosting
Setting up a server using txAdmin
Setting up a Vanilla FXServer
Server Commands
Proxy Setup
Finding resources
Frameworks
Guides for scripting
Scripting introduction
Introduction to resources
Creating your first script in C#
Creating your first script in JavaScript
Creating your first script in Lua
Fact Sheet
Understanding and Using Native Functions
Scripting runtimes
Scripting in Lua
Scripting in JavaScript
Scripting in C#
Using new game features
Fuel consumption
Work with drawable components and props using collections
Networking
Network and local IDs
State bags
Migrating from deprecated methods
Creating chat messages
Creating commands
Working with events
Listening for events
Triggering events
Event Cancelation
User interfaces with NUI
Fullscreen NUI
Direct-rendered UI
NUI callbacks
Loading screens
Voice
Using Scaleform
Debugging
Using the profiler
Stock resources
baseevents
chat
Events
chat:addMessage
chat:addSuggestion
chat:addSuggestions
chat:addTemplate
chat:clear
chat:removeSuggestion
chatMessage
Exports
addMessage (client)
addMessage (server)
addSuggestion
registerMessageHook
registerMode
mapmanager
sessionmanager
spawnmanager
txAdmin
Game references
Controls
Input mapper/parameter IDs
DIGITALBUTTON_AXIS
GAME_CONTROLLED
JOYSTICK_AXIS
JOYSTICK_AXIS_NEGATIVE
JOYSTICK_AXIS_POSITIVE
JOYSTICK_BUTTON
JOYSTICK_IAXIS
JOYSTICK_POV
JOYSTICK_POV_AXIS
KEYBOARD
MKB_AXIS
MOUSE_ABSOLUTEAXIS
MOUSE_BUTTON
MOUSE_BUTTONANY
MOUSE_CENTEREDAXIS
MOUSE_NORMALIZED
MOUSE_RELATIVEAXIS
MOUSE_SCALEDAXIS
MOUSE_WHEEL
PAD_ANALOGBUTTON
PAD_AXIS
PAD_DEBUGBUTTON
PAD_DIGITALBUTTON
PAD_DIGITALBUTTONANY
TOUCHPAD_ABSOLUTE_AXIS
TOUCHPAD_CENTERED_AXIS
Blips
Checkpoints
Markers
Data files
Game events
Gamer tags
Instructional Buttons
Ped models
Vehicle models
HUD colors
Pickup Hashes
Profile Settings
Radio Stations
Weapon models
Text formatting
Vehicle Colours
Support
Client FAQ
Client issues
Server debugging
Server issues
Bans FAQ
Resource FAQ
Requesting Documentation
Developer docs
Script runtimes
Secure your events
FxDK
Resources
World Editor
Project building
FXCode
Contributing
Git
Squash Guide
Rebase Guide
How you can help
Scripting reference
Client functions
Server functions
Resource manifest
Runtime-specific references
C# function reference
Client-side functions in C#
Server-side functions in C#
JavaScript function reference
Client-side functions in JavaScript
Server-side functions in JavaScript
Lua function reference
Client-side functions in Lua
Server-side functions in Lua
Events
Client events
Server events
List of events
gameEventTriggered
onClientResourceStart
onClientResourceStop
onResourceStart
onResourceStarting
onResourceStop
playerConnecting
playerDropped
respawnPlayerPedEvent
vehicleComponentControlEvent
populationPedCreating
rconCommand
Convars
OneSync
Edit this page
Create documentation issue
Create project issue
Documentation
Guides for scripting
Scripting introduction
Scripting introduction
Introduction to resources
Creating your first script in Lua
Creating your first script in C#
Creating your first script in JavaScript
About native functions
Last modified June 3, 2020:
Add JavaScript simple tutorial (26d42c3)