VORP Lib is a modular scripting library for RedM that simplifies game development by providing reusable, instance-based components with automatic cleanup. Designed specifically for VORP Core Framework, it helps developers write cleaner, more efficient scripts while eliminating common issues like memory leaks and global variable pollution
LIB
is a global variable that contains a table with CORE
and NOTIFY
as sub-variables like LIB.CORE
and LIB.NOTIFY
to access them easilyVariables
CORE
CORE
is available for server and client , you wont need to call exports.vorp_core:GetCore()
NOTIFY
NOTIFY
is available for server and client , you wont need to use vorp core notify or even import the notify modulemodules
entities
blips
inputs
prompts
commands
points
events
dataview
streaming
Single
Import
function, documentation for each module will be available below
collector
file) for exports
Shared
Blip
Input
Destroy
RemoveKey
Pause
Resume
Update
Start
Prompt
GetHandle
GetPromptGroup
GetGroupLabel
IsRunning
Command
Remove
AddSuggestion
RemoveSuggestion
Pause
Resume
Destroy
Start
OnExecute
OnError
Point
IsPointActive
IsPointInside
Event
Start
Pause
Resume
Destroy
DataView
Buffer
ByteLength
ByteOffset
Data Type Getters
GetInt8(offset, endian)
- Read 8-bit signed integerGetUint8(offset, endian)
- Read 8-bit unsigned integerGetInt16(offset, endian)
- Read 16-bit signed integerGetUint16(offset, endian)
- Read 16-bit unsigned integerGetInt32(offset, endian)
- Read 32-bit signed integerGetUint32(offset, endian)
- Read 32-bit unsigned integerGetInt64(offset, endian)
- Read 64-bit signed integerGetUint64(offset, endian)
- Read 64-bit unsigned integerGetFloat32(offset, endian)
- Read 32-bit floatGetFloat64(offset, endian)
- Read 64-bit doubleGetString(offset, endian)
- Read null-terminated stringGetLuaInt(offset, endian)
- Read Lua integerGetLuaNum(offset, endian)
- Read Lua numberFixed Size Getters
GetFixedString(offset, length, endian)
- Read fixed-length stringGetFixedInt(offset, length, endian)
- Read fixed-size signed integerGetFixedUint(offset, length, endian)
- Read fixed-size unsigned integerAsset Loading
LoadModel
LoadTextureDict
OOP System
Create
Control Flow & Timing
Switch
Notify
Left
Tip
Top
RightTip
Objective
SimpleTop
RightAdvanced
Center
Fail
Dead
Update
Warning
LeftRank
Test