¿Al jugador, no a todos los jugadores? Entonces, si es client-side no tienes que usar nada, y si es server-side:
outputChatBox( "Red #FFFFFFWhite", source, 255, 0, 0, true )
Una cosa, si es solo de un marker, ¿porque no usaste onClientMarkerHit? Prueba así:
function tuneCar(tP)
if isElement(tP) then
if getElementType(tP) == "player" then
local iV = isPedInVehicle(tP)
if iV == true then
local playerVehicle = getPedOccupiedVehicle ( tP )
triggerClientEvent("gui",source)
end
end
end
end
addEventHandler("onMarkerHit", markerDRIFT, tuneCar)
Encuentra el client donde está el GUI principal en freeroam, encuentra la parte donde se define el botón o los botones y bórralos o reemplázalos con un comentario, por ejemplo:
Ejemplo
Para hacerlo como un 'comentario', usarías:
--Ejemplo
OK, you use this for unmute:
setTimer ( setPlayerMuted, milliseconds, 1, target, false )
Try adding this line below:
setTimer ( outputChatBox, milliseconds, 1, "yourtexthere", getRootElement(), 255, 255, 255, true)
Just use this:
getAccountName
getPlayerAccount
aclGetGroup
if isObjectInACLGroup then
setPlayerNametagColor
addCommandHandler --If you want it as command
Do you mean doing X thing only if you are near to a position? You can use
createColRectangle
removeCommandHandler
addCommandHandler
And the events would be onColShapeHit and onColShapeLeave if it is server-side or for client-side, onClientColShapeHit and onClientColShapeLeave
So you would remove the command when you leave the Colshape and you would create it when you enter it.
Still, I've other idea: why don't you just make the outputChatBox only for the player, not to all? You do this because of spamming, but, if you do it for him only, he will just spam himself.