M Docs
DOCUMENTATION STATUS: LIVE

Welcome to M Development

Here you'll find everything you need to install, configure, and customize our FiveM resources. Our mission is to make your server development experience as seamless as possible.

Why choosing us?

We prioritize performance, code efficiency, and user experience. Every script is meticulously optimized to maintain frame times under 0.01ms, proven on high-population servers with 200+ players.

High Performance

Optimized code that ensures zero unnecessary overhead on your server.

Security

Built-in protection against exploits and malicious script interactions.

Lifetime Updates

Purchase once and receive all future improvements and patches for free.

Installation

A simple guide to getting your new resources live in just a few minutes.

Standard Procedure

Follow these steps for most of our scripts:

  1. Download the resource from your Cfx.re Keymaster.
  2. Extract the folder into your resources directory.
  3. Ensure the folder name matches the documentation exactly (remove version numbers).
  4. Import any provided SQL files into your database.
  5. Add ensure resource_name to your server.cfg.
server.cfg
## M Development Resources
ensure m-drugs
ensure m-housing
ensure m-banking

Drug System

Configure your server's economy through our advanced drug system.

Core Features

  • Planting with dynamic growth stages
  • Processing laboratories
  • Corner selling with NPC interaction
  • Police notifications with integrated dispatch
config.lua
Config.GrowthTime = 600 -- Seconds for full growth
Config.CopsRequired = 2 -- Minimum cops required to sell

Housing System

Provide your players with a home using our performance-optimized housing system.

Installation

Housing requires ox_lib and a supported database solution.

Important: Don't forget to execute the SQL file to enable furniture persistence.

Banking System

Modern and secure banking management for FiveM.

Features

Our banking system includes society accounts, ATM robberies, and beautiful transaction history graphs.

Keymaster & License

Information on how our scripts are licensed via Cfx.re.

Tebex & Keymaster

After purchase, your resources will automatically appear on Keymaster under "Granted Assets".

Locales

Customize the text in our scripts to match your server's language.

Changing Language

All our scripts come with a locales/ directory. Simply change Config.Locale to your desired language file.

Exports & Events

Integrate our scripts with your existing systems using our robust built-in APIs.

Client Exports

Check script status directly from your external resources.

client.lua
-- Example: Check if player is in a drug zone
local isInZone = exports['m-drugs']:IsInDrugZone()

if isInZone then
    print("Player is in zone!")
end

Server Events

Listen for critical events on the server side.

server.lua
AddEventHandler('m-drugs:server:onProcessFinish', function(source, drugType, amount)
    print(GetPlayerName(source) .. " processed " .. amount .. "x " .. drugType)
end)

Server Events

Lyssna på viktiga händelser på server-sidan.

server.lua
AddEventHandler('m-drugs:server:onProcessFinish', function(source, drugType, amount)
    print(GetPlayerName(source) .. " bearbetade " .. amount .. " st " .. drugType)
end)