Skip to content

Maximus7474/5m-Elevator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5M-Elevator

By Maximus7474

If you like this resource please drop a star, it's always appreciated and gives motivation to continue !

⚠️ If you are not planning on developping this script download the latest release.

Preview:

image

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

image

Requirements:

  • 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 by ox_lib

Configuration:

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.

Specifications:

  • 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 rank
    • false 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.

FAQ:

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.

Credits: