Config.lua
Pour lâopen-source, toute la partie âConfig.Elevator Configâ et DrawText nâest pas mise. Câest seulement pour lâescrow
For open-source, the whole âConfig.Elevator Configâ and DrawText part is not included. Itâs only for the escrow
Config.Elevator_Config = {
['Interaction'] = {
ShowMarker = 10.0,
MarkerOption = {Type = 6, dirX = 0.0, dirY = 0.0, dirZ = 0.0, rotX = -90.0, rotY = 0.0, rotZ = 0.0, scaleX = 0.7, scaleY = 0.7, scaleZ = 0.7, red = 255, green = 255, blue = 255, alpha = 100, bobUpAndDown = false, faceCamera = false, p19 = true, rotate = false, textureDict = false, textureName = false, drawOnEnts = false},
MarkerZPosition = (-0.97), -- If you want to increase the height of the marker. Remove the â-â
InteractMarker = 2.0,
TextInteraction = "[E] Elevator",
ElevatorInteractionKey = 38, -- https://docs.fivem.net/docs/game-references/controls/
},
['Animation'] = { -- This animation is made in order to have quality in the TP
SetFade = true, -- If you want the animation in black
DoScreenFadeOut = 200, -- The fade black animation
FirstWait = 250, -- Animation between fade and TP
SecondWait = 750, -- The Wait after being TP
DoScreenFadeIn = 200, -- End of black animation
}
}
Config.Elevator = {
-- If you need to have the same name on different elevators. Add a space after the sentence, example: "Elevator", "Elevator ", "Elevator "
['Los Santos Police Department'] = {
{
FloorNumber = "-1",
TpTo = vector4(-1096.0, -850.52, 4.88, 40.06),
},
{
FloorNumber = "-2",
TpTo = vector4(-1096.1, -850.7, 10.28, 38.63),
},
{
FloorNumber = "-3",
TpTo = vector4(-1095.91, -850.7, 13.69, 41.62),
},
{
FloorNumber = "1",
TpTo = vector4(-1095.98, -850.61, 19.0, 37.17),
},
{
FloorNumber = "2",
TpTo = vector4(-1096.02, -850.63, 23.04, 36.63),
},
{
FloorNumber = "3",
TpTo = vector4(-1096.11, -850.46, 26.83, 40.14),
},
{
FloorNumber = "4",
TpTo = vector4(-1096.02, -850.65, 30.76, 39.6),
},
{
FloorNumber = "5",
TpTo = vector4(-1096.27, -850.4, 34.36, 40.6),
},
{
FloorNumber = "6",
TpTo = vector4(-1096.23, -850.34, 38.24, 29.75),
},
},
['Emergency Medical Services'] = {
{
FloorNumber = "-1",
TpTo = vector4(-419.05, -344.87, 24.23, 110.16),
},
{
FloorNumber = "0",
TpTo = vector4(-436.09, -359.7, 34.95, 352.23),
},
{
FloorNumber = "10",
TpTo = vector4(-443.93, -332.24, 78.17, 357.22),
},
},
['Emergency Medical Services '] = {
{
FloorNumber = "-4",
TpTo = vector4(275.72, -1361.29, 24.54, 52.9),
},
{
FloorNumber = "-3",
TpTo = vector4(-452.64, -288.41, -130.84, 115.72),
},
{
FloorNumber = "0",
TpTo = vector4(-452.62, -288.42, 34.95, 116.03),
},
{
FloorNumber = "4",
TpTo = vector4(-490.59, -327.63, 69.5, 178.3),
},
},
}
Elevator_DrawText = function(x, y, z, text)
local px,py,pz=table.unpack(GetGameplayCamCoords())
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
local scale = (1/dist)*2
local fov = (1/GetGameplayCamFov())*100
local scale = scale*fov
SetTextScale(0.0*scale, 0.40*scale)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextDropshadow(0, 0, 0, 0, 255)
SetTextEdge(1, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString(text)
SetDrawOrigin(x,y,z, 0)
DrawText(0.0, 0.0)
ClearDrawOrigin()
end
Voici mon script dâascenseur. Jâai dĂ©jĂ rĂ©alisĂ© une version trĂšs simple , mais cette fois-ci, câest une version plus esthĂ©tique, plus poussĂ©e. Vous avez le choix entre la version semi-cryptĂ©e Ă 3 ⏠et lâopen-source qui coĂ»te 7 âŹ. Je trouve que ces prix sont assez corrects et ne sont pas abusifs comme dâautres sur le marchĂ©.
Here is my elevator script. I have already created a very simple version, but this time, itâs a more aesthetic and advanced version. You have the choice between the semi-encrypted version for âŹ3 and the open-source version that costs âŹ7. I think these prices are quite reasonable and are not excessive compared to others in the market.
Code is accessible | Yes & No |
Subscription-based | No |
Lines (approximately) | ~300 |
Framework | Standalone |
Translation in script | EN & Custom |
Support | Yes |
My scripts/mapping
Police Menu Extra [ESX (QB in readme.md)] (FREE)
VoteTopServeur [QB] (FREE)
Wheelchair [ESX & QB] (1⏠ESCROW or 2⏠OPEN-SOURCE)
Taxi [ESX & QB] (2⏠Open-Source)
Elevator UI [Standalone] (3⏠ESCROW or 7⏠OPEN-SOURCE)
Stretcher [ESX & QB] (5⏠ESCROW or 7⏠Open-Source)
Police lockers and investigation files [ESX & QB] (5⏠ESCROW or 10⏠OPEN-SOURCE)
JobTattoo [ESX & QB] (15⏠OPEN-SOURCE)
LB Phone Plugin : App News
Lockers UI [ESX & QB] (7⏠Escrow & 40⏠Open-Source)
Karting YMAP [FREE]
Race YMAP Grapeseed [FREE]
Race YMAP Port of Los Santos [FREE]