Hi everyone
Is there a way to change minimap position ?
either on the top right for example ?
Thanks in advance
Hi everyone
Is there a way to change minimap position ?
either on the top right for example ?
Thanks in advance
Yes you can, with https://github.com/citizenfx/fivem/blob/c601baf1fb132677cd372559ee9dac09a8977b93/ext/native-decls/SetMinimapComponentPosition.md
Change "minimap"
, "minimap_mask"
and "minimap_blur"
. As mentioned, you can find the default values in common:/data/ui/frontend.xml
hy d0p3t
thanks for your answer.
i guess i have to change my client files is that ?
should i modify that path " common:/data/ui/frontend.xml
" if it’s a put actually ^^’
because actually i want to apply this to all players in the server, forget to say that.
It’s a native.
Run this once on first tick. Might have to enable/disable big radar
Example
Citizen.CreateThread(
function()
local minimap = RequestScaleformMovie("minimap")
while not HasScaleformMovieLoaded(minimap) do
Wait(0)
end
SetMinimapComponentPosition("minimap", "L", "B", -0.0045, -0.022, 0.210, 0.258888)
SetMinimapComponentPosition("minimap_mask", "L", "B", 0.0, 0.032, 0.101, 0.259)
SetMinimapComponentPosition("minimap_blur", "L", "B", 0.012, 0.022, 0.256, 0.337)
SetRadarBigmapEnabled(true, false)
Wait(500)
SetRadarBigmapEnabled(false, false)
end
)
got to convert that to C#
will try i tell you back d0p3t, thanks
thanks d0p3t it work like a charm, thanks for the code aswell.
No problem! Enjoy.
Where do I put that code, how should I do it, for an esx fivem server?
This has nothing to do with ESX. It’s a client side code, so put it in a client side script.
Couple of questions.
Hi,
This is only for server owners.
Hi,
I am.
Hey, when the client switches to window mode my settings get all messed up
is there a way to set it to change relative to resolution or whatever it is that is causing this issue?
thanks in advance.
Where do you run this? I own a server but not sure where to run this
where do I run it?
Create a folder call it no_map or something
Create a client.lua then
Create a __resource.lua or even better fxmanifest.lua and reference client.lua.
Open client.lua copy paste code above save wala done
where do I run it? before or after my other scripts? and, if I run it, do I run it every time or just once?
can u make the map bigger ?
I think so