Skip to Content
ScriptingScripting Overview

Scripting Overview

FiveM supports multiple scripting languages for creating custom resources.

Supported Languages

  • Lua: Most common, native support
  • JavaScript: Modern alternative
  • C#: For advanced developers

Script Types

Server-Side

Runs on the server:

  • Game logic
  • Database operations
  • Player management
  • Security checks

Client-Side

Runs on each player’s client:

  • UI rendering
  • Input handling
  • Visual effects
  • Local game state

Getting Started

  1. Resource Lifecycle - Understand how resources work
  2. Events - Learn about event system
  3. NUI - Create user interfaces
  4. Examples - See working examples

Next Steps

Choose your language:

Last updated on