FreeScript
graft
by boiidevelopment · version 1.5.0 · updated 18 days ago
No reviews yet
- Downloads
- 0
- Reviews
- 0
- Size
- 64 KB
- Code check
- Clean
- Licence
- MIT
- Released
- Nov 2026
GRAFT (General Runtime Abstraction & Framework Toolkit)
V1.3.0 SHOULD BE BACKWARDS COMPATIBLE WITH ALL OLD BOII/PIT SCRIPTS IF YOU RUN INTO ANY ISSUES PUT IN A TICKET, QUICKER THEY ARE RAISED, QUICKER THEY CAN BE FIXEDGRAFT - General Runtime Abstraction & Framework Toolkit
Documentation
What Is GRAFT?
GRAFT (General Runtime Abstraction & Framework Toolkit) is a modular collection of framework-aware and standalone utilities for script development.
Use it as a resource, embed it in your scripts, or cherry-pick individual files.
No forced dependencies. No commitment to the entire toolkit.
Why GRAFT Exists
GRAFT is my personal script development kit.
I've used it for over two years to build nearly everything I ship - from small standalone scripts to full production systems.
It's been rewritten, trimmed, reorganized, and stress-tested in real servers, not demos.
The API is intentionally minimal.
Not because features are missing, but because it only covers what you actually need to ship production-ready scripts:
GRAFT isn't meant to impress.
It's meant to work - quietly, reliably, and without getting in your way.
How to Use GRAFTOption A - Standalone Resource
Drop
Works well for a shared utility base across multiple resources.
Option B - Embedded Library
Copy the
Then use directly:
Ideal for:
Every file is self-contained. Copy only what you need:
No resource dependency. No bloat.
What's Included**FiveM Bridges (
**RedM Support (
Placeholder structure ready for RedM-specific implementations.
Project Structure
All modules are:
Support
Need help? Found a bug? Regretting a refactor?
👉 Discord
Support Hours: Mon–Fri, 10AM–10PM GMT
Outside hours? Messages are still logged.
Warning
Using GRAFT may result in:
Documentation
What Is GRAFT?
GRAFT (General Runtime Abstraction & Framework Toolkit) is a modular collection of framework-aware and standalone utilities for script development.
Use it as a resource, embed it in your scripts, or cherry-pick individual files.
No forced dependencies. No commitment to the entire toolkit.
Why GRAFT Exists
GRAFT is my personal script development kit.
I've used it for over two years to build nearly everything I ship - from small standalone scripts to full production systems.
It's been rewritten, trimmed, reorganized, and stress-tested in real servers, not demos.
The API is intentionally minimal.
Not because features are missing, but because it only covers what you actually need to ship production-ready scripts:
- Common framework differences handled once
- Reusable patterns without opinionated bloat
- Utilities that solve real problems, not edge cases
GRAFT isn't meant to impress.
It's meant to work - quietly, reliably, and without getting in your way.
How to Use GRAFTOption A - Standalone Resource
Drop
graft into your resources folder, ensure graft in server.cfg, then use exports:
local commands = exports.graft:require("graft.fivem.modules.commands")
local framework = exports.graft:require("graft.fivem.bridges.framework")
local maths = exports.graft:require("graft.standalone.modules.maths")Works well for a shared utility base across multiple resources.
Option B - Embedded Library
Copy the
graft folder into your resource (e.g., myresource/lib/graft/), update your fxmanifest.lua:
shared_scripts {
"lib/graft/standalone/**/*.lua",
"lib/graft/cfx_require.lua",
"lib/graft/fivem/**/*.lua"
}Then use directly:
local fw = require("lib.graft.fivem.bridges.framework")
local inventory = require("lib.graft.fivem.bridges.inventory")
local maths = require("lib.graft.standalone.modules.maths")Ideal for:
- Standalone scripts
- Releases that shouldn't require extra resources
- Developers who prefer explicit control
Every file is self-contained. Copy only what you need:
lib/
├─ cfx_require.lua # Drop-in require() helper
├─ fivem/
│ └─ bridges/
│ └─ framework.lua # Framework bridge
└─ standalone/
└─ modules/
└─ maths.lua # Standalone math utilitiesNo resource dependency. No bloat.
What's Included**FiveM Bridges (
graft/fivem/bridges/)**
- framework.lua - Unified API across ESX, QBCore, QBox, NDCore, and more
- inventory.lua - Currently only covers ox_inventory, will add more asap
- notify.lua - Consistent notify API
- drawtext_ui.lua - Framework-aware text display
graft/fivem/modules/)**
- animations.lua - Animation helpers
- callbacks.lua - Client/server callback system
- commands.lua - Enhanced command registration
- cooldowns.lua - Simple cooldown management
- entities.lua - Entity helper functions
- environment.lua - Weather, time, and world state
- keys.lua - Keybind management
- requests.lua - Asset streaming helpers
- timestamps.lua - Time utilities
- vehicles.lua - Vehicle-specific helpers
graft/fivem/scripts/)**
- zone_creator.lua - Interactive zone creation tool
graft/standalone/modules/)**
- maths.lua - Math utilities
- strings.lua - String manipulation
- tables.lua - Table helpers
**RedM Support (
graft/redm/)**Placeholder structure ready for RedM-specific implementations.
Project Structure
graft/
├─ cfx_require.lua # Drop-in require() helper
├─ fivem/
│ ├─ bridges/ # Framework & system bridges
│ ├─ modules/ # FiveM utility modules
│ └─ scripts/ # Standalone scripts (zone creator, etc)
├─ redm/ # RedM support (placeholder)
└─ standalone/
└─ modules/ # Framework-free utilitiesAll modules are:
- Shared-runtime safe
- Client/server aware where applicable
- Designed to be copied or reused freely
- Use as resource, embedded library, or individual files
- No forced dependencies
- Framework-agnostic APIs
- Consistent structure and naming
- Built for real scripts, not demos
Support
Need help? Found a bug? Regretting a refactor?
👉 Discord
Support Hours: Mon–Fri, 10AM–10PM GMT
Outside hours? Messages are still logged.
Warning
Using GRAFT may result in:
- Cleaner projects
- Less duplicated logic
- Faster development
- Mild discomfort from increased productivity