By Maximus7474
If you like this resource please drop a star, it's always appreciated and gives motivation to continue !
- For any issues or feature requests please use the issues tab
- CFX Forum Post
Preview:
Without access the panel doesn't allow the user to access the elevator, if he has access the light is then green and he can move around freely
- ox_lib
- (optionnal) es_extended or ox_core or qb-core
- For using job/group restricted elevators
- (optionnal) ox_target or qb-target
- For target enable it in the config.
- If you don't use any of these scripts you can add your own in
client/modules/targets
- Also possible to add another zone script handler in
client/modules/zones
but it is handled byox_lib
All configuration actions are available in the config.lua file. To add more elevators copy the template and alter the values by respecting the structure, not respecting it will lead to errors and the resource not working properly.
- The floors will show in the same order as listed in the config file.
- To add a restriction use the following table structure:
{ ["jobname"] = minimum_rank, ["job2name"] = minimum_rank }
with minimum_rank being an integer{ "jobname", "job2name" }
making only the job required regardless of the rankfalse
to disable all restrictions
- The index of the floors table needs to be a string and is suggested to not be longer than 3 characters long.
Q: Why does my character/vehicle drop when changing floor
A: You copy pasted the raw coords from a character position, this is 0.98 distance units above the ground. Either add - 0.98
after the z coordinate or subtract it from it.
- Project Error for the react boilerplate Github Repo