Git Product home page Git Product logo

tnj-events's Introduction

tnj-events | DEVELOPER RESOURCE

This is a developer resource and when is done it will run at a slighter higher resmon ms than most scripts but it utilizing this properly will bring total resmon ms in a server down

LICENSE

This project does not contain a license, therefore you are not allowed to add one and claim it as yours. You are not allowed to sell this nor re-distribute it, if an issue arises, we will proceed to file a DMCA takedown request. You are not allowed to change/add a license unless given permission by T&J Services (Jay). If you want to modify (does not apply if you want to use it for personal purposes) or make an agreement, you can contact T&J Services (Jay). Pull requests are accepted as long as they do not contain breaking changes. You can read more about unlicensed repositories here if questions remain.

Credits

CFX for the "baseevents" resource providing me with something to build off.

https://discord.gg/GUhYGu999z

tnj-events's People

Contributors

jay-fivem avatar

Stargazers

Ilham Wicaksono avatar  avatar

Watchers

 avatar

tnj-events's Issues

Suggested change: Max Player

This function

function GetPlayerByEntityID(id)
for i=0,32 do
if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
end
return nil
end

should be changed to

function GetPlayerByEntityID(id)
	for i=0, GetConvarInt('sv_maxclients', 32) do
		if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
	end
	return nil
end

To account for more than 32 players or alternatively replace with returning NetworkGetPlayerIndexFromPed(id).

Ref:
citizenfx/cfx-server-data#199
citizenfx/cfx-server-data#214

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.