Skip to content

blurryrox/kimi_callbacks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support

If you require any form of support after acquiring this resource, the right place to ask is our Discord Server: https://discord.gg/UyAu2jABzE

Make sure to react to the initial message with the tick and your language to get access to all the different channels.

Please do not contact anyone directly unless you have a really specific request that does not have a place in the server.

What exactly is "kimi_callbacks" and what can you do with it?

"kimi_callbacks" is a LUA script that allows you to create custom server and client callbacks in an easy manner. This script does nothing by itself and needs to be used via exports from other resources.

I decided to create this script as a base for my other scripts and I felt like the others out there didn't really exactly suit my needs.

Checkout the AdvancedParking and Advanced Vehicle Interaction Script that both use this feature to get values from the server.

Features

  • Clients can request data from the server.
  • Server can request data from a client.
  • Includes configurable timeouts for requests that take too long.
  • Any amount of values can be returned / send.
  • Uses exports for all functions.
  • Examples explaining all you need to know.
  • Includes the full source code.
  • Compatible with everything.

Performance

  • This script does not really use any performance, unless a lot of request are running in parallel.
  • Idle: both client and server: 0.00ms
  • 100 parallel server callbacks (for the splitsecond they are active at the same time and chances are pretty much 0 to get even 5 at the same time):
    • client side: ~0.30ms
    • server side: ~0.00-0.01ms

Installation

  • Download the script from Github.
  • Extract the folder into your resources folder.
  • Make sure the folder name of the script is kimi_callbacks
  • Go into your server.cfg and put the line ensure kimi_callbacks as high up as possible.

About

FiveM LUA callback system using exports

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%