📄Resource Description

A quick overview of what the resource offers

Information

Yet another library you have to download from a script creator? Yes, but it has it's benefits. Zyke Lib is a dependency for all my resources released or updated after this was released. Thanks to zyke_lib, the limitations of what framework you prefer are now gone.

What does it actually do? Here's the breakdown:

  • It eliminates the need of copying snippets around from project to project, all you have to do is import zyke_lib using it's export. This feature is for loading animations, displaying texts etc.

  • The script that uses zyke_lib becomes totally framework independent. This means that you can, in theory, use any server for my resources as long as you adapt it to zyke_lib. Of course you can't just plug in vRP and hope everything works, but you can switch out ESX/QBCore's version of, for example fetching the character identifier, for your own server's way of doing this. However, this is not a perfect solution as ESX/QBCore may have limitations that your custom framework does not, hence me never implementing a specific feature, but in most cases this solution helps both the script creator as well as the customer to make the script more available.

  • How does the statement above work? zyke_lib is basically a "hub" for choosing the correct function based on your configuration. In my resources, I type "z.GetPlayer(x)" and pass in a source or identifier, zyke_lib will then use the correct function based on my configuration, meaning that as long as you configure zyke_lib to your framework, my script will work for any framework, no matter how custom it is.

  • You can use this in any resource. If you're creating your own scripts you can utilize zyke_lib by using it's functions, a good example is drawing 3d texts. By using Zyke Lib's function you only have to change values in one location and it's changed in all your resources using it.

You can find the repository here.

Last updated