Jump to content

Brad96

Members
  • Posts

    210
  • Joined

  • Last visited

Everything posted by Brad96

  1. 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, .
  2. as I can do for me only, have use of wheels that matters? amount rims and I want to use only ..
  3. Brad96

    Help Here

    the truth, just trying to see how each line to understand
  4. Brad96

    Help Here

    as I get more information about this parameter?
  5. Brad96

    Help Here

    Solid Thanks I appreciate that, but you could get more in detail - Sets the value of a shading member? I do not understand what you mean and referred to when he says "gTexture"? thanx
  6. Brad96

    Help Here

    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")
  7. 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 )
  8. ye but the infernus do not have txd with lights for replace them for me sorry for my english
  9. 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.
  10. 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
  11. Brad96

    Crear Marcador

    ya lo resolvi , era porque el ultimo argumento "255" lo habia puesto en 0 .. gracias
  12. Brad96

    Crear Marcador

    pero quier hacerlo "Corona" y no aparece
  13. Brad96

    Crear Marcador

    no sirve aunque solo use los argumentos requeridos , y lo tengo en server side
  14. 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() )
  15. entonces aqui el commandhandler es el que se encarga de activar la funcion no ?
  16. 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
  17. explicame y dime que use mal y porque y con que se finalizar el chatbox ? gracias
  18. explicame y dime que use mal y porque y con que se finalizar el chatbox ? gracias
  19. 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) )
  20. work! I appreciate that, now can you tell me as to which line you got the player's position and that you gave?
  21. yes but I'm noob in this, donot exactly what vaen addCommandHandler addCommandHandler("V",thePlayer () getRootElement ) This ? our what
  22. server side , and no , no work
  23. dont'work , but see addCommandHandler something is missing
×
×
  • Create New...