-
Posts
210 -
Joined
-
Last visited
Everything posted by Brad96
-
se puede importar una fuente por ej al mapname del race? lo e intentado , pero cuando pongo la fuente en el text aparece la de default .. local myFont = dxCreateFont("font.ttf" ,12 mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, 'myFont, 0.7, 'left') espero que me ayuden gracias, .
-
as I can do for me only, have use of wheels that matters? amount rims and I want to use only ..
-
I want to explain this, each line please ... try to understand texShader = dxCreateShader ( "shader/texreplace.fx" ) vehiclelights128 = dxCreateTexture("img/generic/vehiclelights128.png") vehiclelightson128 = dxCreateTexture("generic/vehiclelightson128.png") dxSetShaderValue(texShader,"gTexture",vehiclelights128) engineApplyShaderToWorldTexture(texShader,"vehiclelights128") dxSetShaderValue(texShader,"gTexture",vehiclelightson128) engineApplyShaderToWorldTexture(texShader,"vehiclelightson128")
-
server side , i do this
-
as I found them but I need this script activate the lights when a player enters the server .. for now activated by a Panel .. how could I do that will be activated when entering the sv without panel or anything? local lights = { "vehiclelightson128" } local shaders = {} local currentLight = "vehiclelightson128" local drawLights = true addEventHandler("onClientResourceStart",resourceRoot, function () currentLight = getCookieOption("lights") or "high quality" setElementData(localPlayer,"vehiclelight",currentLight,true) if getCookieOption("draw") ~= "false" then for i,vehicle in ipairs (getElementsByType("vehicle")) do loadVehicleLights(vehicle) end end end ) addEventHandler("onClientElementStreamIn",root, function () if getElementType(source) == "vehicle" then loadVehicleLights(source) end end ) addEventHandler("onClientVehicleEnter",root, function () loadVehicleLights(source) end ) function loadVehicleLights (vehicle) local controller = getVehicleController(vehicle) if not controller then return end local image = getElementData(controller,"vehiclelight") if not image then return end if not shaders[image] then local texture = dxCreateTexture("images/vehiclelightson128.jpg","dxt3") local shader = dxCreateShader("lights.fx") dxSetShaderValue(shader,"gTexture",texture) shaders[image] = shader end engineApplyShaderToWorldTexture(shaders[image],"vehiclelightson128",vehicle) -- needs messing with alpha end addEventHandler("onClientElementDataChange",root, function (key,oldvalue) if key == "vehiclelight" then local vehicle = getPedOccupiedVehicle(source) if vehicle then loadVehicleLights(vehicle) end end end )
-
ye but the infernus do not have txd with lights for replace them for me sorry for my english
-
I wonder if I could give the functions, if They Want to or give me clues Also to try it .. this what comes to detailing the infernus or cars.
-
quisiera saber como y cuando usar function () en que scripts y si puedo ponerle nombre propios ej : function Yo() ya que funciones como createMarker e notado que no necesitan .. soy nuevo y aprendo de ustedes
-
ya lo resolvi , era porque el ultimo argumento "255" lo habia puesto en 0 .. gracias
-
pero quier hacerlo "Corona" y no aparece
-
no sirve aunque solo use los argumentos requeridos , y lo tengo en server side
-
2 horas intentando hacer este script ... por youtbe , hasta en la wiki y no me aparece .. porque ? alguien que me explique , se los dejo aqui , planeo hacerlo teletransportador marker = createMarker(2039.1435546875, 2459.0078125, 10.8203125, "marcado", 0, 0, 0, 0 ,getRootElement() )
-
Ah Bueno Gracias tio graacias
-
entonces aqui el commandhandler es el que se encarga de activar la funcion no ?
-
si , funciona casi perfectamente , solo que se activa cuando entro al auto y la idea es ingresar el comando y que me diga el nombre
-
explicame y dime que use mal y porque y con que se finalizar el chatbox ? gracias
-
explicame y dime que use mal y porque y con que se finalizar el chatbox ? gracias
-
buenas , estoy haciendo este script practicando , porque soy noob en esto .. enfin .. me podria corregir que pude aver hecho mal o que use mal ? gracias addCommandHandler("1", function carName (theVehicle) local id = getElementModel (theVehicle) if id == 411 or id == 511 then local vehicleName = getVehicleName (theVehicle) outputChatBox("Tu Auto Se Llama " ..vehicleName.." ) end end addEventHandler ("onPlayerVehicleEnter", getRootElement(),carName) )
-
work! I appreciate that, now can you tell me as to which line you got the player's position and that you gave?
-
yes but I'm noob in this, donot exactly what vaen addCommandHandler addCommandHandler("V",thePlayer () getRootElement ) This ? our what
-
server side , and no , no work
-
dont'work , but see addCommandHandler something is missing
