| Tematy otagowane jako: radaru |
| 1. Jak zmienić kolor tej obręczy radaru (radardisc) |
Cze?? podmieni?em sobie radar disc za pomoc? funkcji engineApplyShaderToWorldTexture
i mam pytanie w jaki spos?b ustawi? kolor tej obr?czy poniewa? jakiego koloru nie jest serwer j? ?aduj? jako czarn?. za pomoc stawiam zimne |
| 2. Po dopisaniu 1 nazwy do radaru owy radar znika |
Wi?c zaczne od pocz?tku.
Postanowi?em przerobi? pewien radar(z gps-em) z brazylijskiego forum
Wi?c grafiki pozmienia?em i wzi??em si? za dodawanie nazw do blip?w
Podczas dodawania nazw do pierwszych kilku blip?w(11) wszystko dzia?a?o jak nale?y lecz jak chce doda? kolejn? nazw? (pr?bowa?em z innymi nazwami/blipami ale jest to samo)to radar automatycznie znika
tak wygl?da kod z nazwami z przerobionego pliku :
[code]local s = {guiGetScreenSize()}
local radarS = {s[1]-400, s[2]-200}
local radarP = {s[1]/2-radarS[1]/2, s[2]/2-radarS[2]/2}
local vizSzin = tocolor(110, 158, 204,255)
local nagymap
local radarM = {3072,3072}
local blipMeret = {20,20}
local jatekosMeret = {12,12}
local zoom = 2
local minZoom = 1
local maxZoom = 2
local zoomRadio = 0.05
local mozgatAdat = {0,0}
local honnanMozgat = {0,0}
local chatetRejtett = false
utiBlip = nil
gpsPontok = {}
radarMegjelenitve = false -- Ha ez igaz akkor a minimapot nem rendereli
addEventHandler( "onClientResourceStart", getRootElement( ),
function ( resource )
if resource ~= getThisResource() then return end
-- R?gi radar t?rl?se
toggleControl("radar", true)
nagymap=dxCreateRenderTarget(radarS[1], radarS[2],false)
radar=dxCreateRenderTarget(radarS[1], radarS[2],false)
setPlayerHudComponentVisible("radar",false)
end
);
addEventHandler("onClientKey", getRootElement(), function(gomb, statusz)
if(gomb == "F11" and sta... |
| 3. ElementData Radaru |
Czesc, mam radar z brazylysjkich forum, i mam problem z tym, ?e nie ma nadanej elementDaty na niego lecz gdy j? dodaje - ona nie dzia?a kod:
c_radar3D.lua
[lua] bindKey("F1", "down", function()
if getElementData(localPlayer, "n:radar") then
setElementData(localPlayer, "n:radar", false)
-- setPlayerHudComponentVisible("radar", false)
showChat(false)
else
setElementData(localPlayer, "n:radar", true)
-- setPlayerHudComponentVisible("radar", false)
showChat(true)
end
end)
[/lua]
c_exported_functions.lua
[lua]--
-- c_exported_functions.lua
--
function createCustomBlip(posX, posY, posZ, tTexture, ...)
if tTexture then
if isElement(tTexture) then
if getElementType(tTexture)=="texture" then
local reqParam = {posX, posY, posZ}
local isThisValid = true
local countParam = 0
for m, param in ipairs(reqParam) do
countParam = countParam + 1
isThisValid = isThisValid and param and (type(param) == "number")
end
if isThisValid and (countParam == 3) then
local opTable = {...}
local size, colR, colG, colB, colA, visibleDistance = opTable[1] or 2, opTable[2] or 255, opTable[3] or 255,
opTable[4] or 255, opTable[5] or 255, opTable[6] or 9999
if visibleDistance == 0 then visibleDistance = 9999 end
local blipElementID = customBlip.create(posX, posY, posZ, tTexture, si... |
| 4. Wyłączenie Radaru |
Potrzebuje pomocy!
Pisze prosty kod w lua na wej?cie do interioru i mam problem z radarem w kodzie jest takie co? jak
showPlayerHudComponent(el, "radar", false) i dzia?a jak mam radar domy?lny ale jak wgrywam inny radar ju? nie dzia?a jak to zrobi? ? |
| 5. Jest skrypt na wylaczenie radaru, chatu i hudu |
Tak jak w temacie. Jest taki skrypt bo przydaloby mi sie takie cos na serwer.
po wpisaniu ./yoff chowalo by sie wszystko a po wpisaniu ./yon pokazywalo |
| 6. Brak Hudu i Radaru |
| Nw czemu ale na w?asnym serwie nikt nie ma hudu i radaru co trzeba zrobi? bo znika ci?gle ? |
| 7. [INNE] Wyłączenie radaru |
Zauwa?y?em, ?e jak mam wysoki drunk level to znika mi radar,
hp etc i mam pytanie - istnieje mo?liwo?? wy??czenia owych
rzeczy bez drunk level'a? Nie chodzi mi tu o opcje gry, tylko
aby ka?dy na serwerze mia? wy??czone. |
|