Disable blips and names server side

Hello, i own a server and we are currently trying to find a script that will disable the player blips server side, that way we can eliminate cheaters. We like to be as serious, and as realistic as possible, and we think there are some people not listening to us and using blips to track civilians and vise versa. Does anyone know of a script available, or can anyone help with scripting one? I have no idea how to script by the way… Thank you!

There is a large amount of native functions related to blips. I’d recommend taking a look at the database (http://www.dev-c.com/nativedb/) and test those functions.
Within 5 minutes I found a way to make blips invisible for lambda players, using void SET_BLIP_ALPHA(Blip blip, int alpha). You could code it like if the player is not an admin, every blips become invisible.

Hope it will help you. Let us know if you found anything.

Thank you! I will test and see if it works!

Hy, I would like to add a permission on my blip so that if your job is eg trafficker you can see it but if you’re civil the blip is not on the map basically it only activates if you are trafficker

Whit the Loadouts

Where exactly does that function you’re referring to go exactly?

If you use trainers in-game it automatically puts the blips on the map and shows the name above players heads. It’s possible to remove but I am not sure how.

You can turn them off in the trainer, but I want them disabled completely server side. We do open civilian nights and I do not want cheaters, and I have been in multiple open servers with the trainers I have (enhanced reborn trainer and simple trainer) and even with my trainers blips turned on they have a script that completely removes names and blips and you cant turn them on client side at all.

Have you searched the forum to maybe see if anyone else has answered this before. I do not have Internet unfortunately I am on my phone. If I wasn’t on my phone I would help you search but it’s just a pain for me on my phone.

Found one that works, it takes blips and names off!

Where did you find this?

Share the link please

Let me find the link again right quick and I will post it, it makes the blips invisible, but the names on the right hand side when the game is paused still show up, but the blips and names above heads are disabled.

You ever find this link?

I cant find it, ive been searching for it.

I have them downloaded if you guys want I can send it to you somehow?

I would indeed like 'em :slight_smile:

Here is the script, there are some edits he said to make before use, i have done that for you already, so all you need to do it place it in a lua titled playermarkerblocker and boom, also in the __resource.lua, this will go in there:

client_script ‘playermarkerblocker’.lua
–Bowen

I take no credit for this script. Script is below, copy into an lua.

Citizen.CreateThread(function()
while true do
for i=0,99 do
N_0x31698aa80e0223f8(i)
end
for i=0,32 do
if(NetworkIsPlayerActive(i) and GetPlayerPed(i)) then
local ped = GetPlayerPed(i)
local Blip = GetBlipFromEntity(ped)
if DoesBlipExist(Blip) then
SetThisScriptCanRemoveBlipsCreatedByAnyScript(true)
SetBlipScale(Blip,0.0)
end
end
end
Citizen.Wait(0)
end
end)

This script is to hide player blips and names right? - cuz if it is it does not work

yes this is the script i have in and it works in my server

For me it only hides player names