Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

draobrehtom/object-manager

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

FiveM - Object Manager (Streamer)

Due to the limitation to create new objects in game (less 2000), I've created this object manager.

Features:

  • Removing deep-range objects
  • Creating nearer objects

Server-side exports

  • createObject(model, x, y, z) // returns id as string
  • deleteObject(id)
  • getObjects() // returns objects as object

Usage

  1. Place this object manager into resources folder.
  2. Set a dependencies { 'object-manager' } inside your script.
  3. Use exports['object-manager'] and listed methods above inside your script

Usage example

https://github.com/draobrehtom/object-manager-test

Config

You can modify only those values: // tomatosClient.js const streamedDistance = 50; const maxStreamedObjects = 50;

About

Resource for GTA V multiplayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published