Qb-spawn - Last Location

Hi!

Recently I have started a Qbus server, and was looking to removed the function of Last Location in the QB-Spawn. Not too sure how to go about this, and didn’t want to attempt something if someone had already had figured this out and willing to share!

Thanks.

1 Like

Hi there. Having just started a QBus server, I really recommend putting in some effort to learn how to edit FiveM Lua/NUI JS scripts. If you don’t, or don’t find someone who can, you will almost surely fail. This has gotta be THE most basic scripting task.

Open qb-spawn/html/script.js
Remove line 77. It looks like this:

 $(parent).append('<div class="location" id="location" data-location="current" data-type="current" data-label="Last Location"><p><span id="current-location">Last Location</span></p></div>');

Voila! It really was that simple!

Thanks Section! I had actually seen that line of code before posting this Forum. I just wanted to be certain on what I was doing. When I was attempting this myself, I was removing " setTimeout(function(){" as well…

I’m new, so I’m here! What better way to learn than by the loving community of FiveM :slight_smile: Jokes aside, I do have a lot to learn but am willing. Appreciate the advice and the help!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.