Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 community.

Guide LSRP-MOTEL FIX

Castillo

Founder
Joined
Feb 28, 2021
Messages
155
Reaction score
349
Points
445
Location
root/
Website
vfivem.com
If you are using lsrp-motels and having problems exiting with markers you can fix it like this.

lsrp-motels/client/client.lua

Find these lines:


for k,v in pairs(Config.Zones) do
for km,vm in pairs(v.Rooms) do
distance = GetDistanceBetweenCoords(coords, v.roomExit.x, v.roomExit.y, v.roomExit.z, true)
if (distance < 1.5) then
if curRoom ~= nil then
--DrawText3Ds(v.roomExit.x, v.roomExit.y, v.roomExit.z + 0.15, ' Press ~b~[E]~w~ to exit the room')
DrawMarker(20, v.roomExit.x, v.roomExit.y, v.roomExit.z + 0.10, 0, 0.50, 0, 0, 0, 0, 0.45,0.25,0.25, 255, 0, 0, 255, 0.0, 0.10, 0, 0.0, 0, 0.0, 0)
if IsControlJustReleased(0, Keys['E']) then
ESX.UI.Menu.CloseAll()
TriggerEvent('lsrp-motels:exitRoom', curMotel, curRoom)
end
end
end
end
end

And change it to this:

for k,v in pairs(Config.Zones) do
distance = GetDistanceBetweenCoords(coords, v.roomExit.x, v.roomExit.y, v.roomExit.z, true)
if distance < 1.5 then
--DrawText3Ds(v.roomExit.x, v.roomExit.y, v.roomExit.z + 0.15, ' Press ~b~[E]~w~ to exit the room')
DrawMarker(20, v.roomExit.x, v.roomExit.y, v.roomExit.z + -0.11, 0, 0.50, 0, 0, 0, 0, 0.45,0.25,0.25, 255, 0, 0, 255, 0.0, 0.10, 0, 0.0, 0, 0.0, 0)
if IsControlJustReleased(0, Keys['E']) then
TriggerEvent('lsrp-motels:exitRoom', curRoom, curMotel)
end
end
end
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds