Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Guide LSRP-MOTEL FIX

cfxregame

Gold Elite
Joined
Nov 3, 2021
Messages
319
Reaction score
166,551
Points
361
Location
Newyork
Website
cfx.re
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
 
Top