Jump to content

saluta

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by saluta

  1. Maybe just replace its texture with a certain id blip and make it unusual to cover this blip simply, but even if that's fine, the task is completed.
  2. I just wanted the mark to appear on the map during the quest, by the way, I did it from scratch, but here's how to make the mark disappear from the radar and the map when you press start work in another work resource, tried it differently through calla and export too.
  3. It does not work, but how to make a marker appear in one quest system and come up to the NPC, this is a different system, the work of a miner and you click on the goo window so that the blip icon disappears, I don’t understand how to combine this and do the work synchronously. how to do it? In general, I tried using callas to call a function with an argument in the resource resource, errors appear in the debug, please help, the problem is still relevant.??
  4. In this case, the database stores the color of the account and coordinates of the car. Читайте тут: dbConnect
  5. it didn’t work as a miner, in general I figured out how to do it. you can create a marker and when you get up on the marker the blip disappears, how to do it?
  6. No, I have a quest system and a miner's work, in general, a quest appears there a mark appears that I have already done a person reaches the mark clicks start work and the mark must disappear exactly 41 id blip radar_waypoint icons. How to implement and do it.
  7. in general, I asked for help, no one helped, hello how to hide the blip using the texture shader method radar_waypoint the texture name is id 41 blips, the indicated point on the radar and map, I need this for my quest system. Even if one wrote, he closed the topic and wrote stupidly briefly, I didn't even understand anything, that's how I would throw you at you, so now come on and sort it out what for the programmers, it's not clear, in general, how to do it?
  8. saluta

    Light system

    Hello dear, I want to make a high beam system from scratch, well, like from scratch - there is already a system of light shaders vechicles_lighting_systems. You press the button and the high beam turns on, how to make the button press and the high beam turns on, here is the light shader code itself.
  9. And how to do this in the work resource, here in the goo window I will click to start work how to make the mark disappear?
  10. Salute dear programmers. How to remove the blip icon on the map? I indicated in the code the creation of an icon by coordinates and ID, but how can I do this deleting an icon by coordinates that I also indicated in the code? help, I beg you.
  11. That's right, I agree with you. Another resource called Vinyl Studio interferes, in general, it is to change the images on the car body. I'll strip off the vinyl code right now. Here is the code.
  12. You threw me off, yes, I understand, but can you please have a full-fledged code to hide a certain icon from the map? by pressing the button in the goo menu to start work. I just want the miner's work resource so that when I click to start work, the id icon disappears 41 the name of the icon - Waypoint
  13. --Autosalon resource client.lua:578 line if not getElementData(source, "byri") or getElementType(hit) ~= "player" and not isPedInVehicle(hit) then return end --Toner client.lua:312 line if getElementData (source, "isToner") == true and hitPlayer == getLocalPlayer() and isPedInVehicle(hitPlayer) then --Fuel resource cl_gas:44 line if getElementData(source,"fuelstation") then
  14. Please help ! ! ! autosalon resource client.lua function onClientMarkerHit (hit) if not getElementData(source, "byri") or getElementType(hit) ~= "player" and not isPedInVehicle(hit) then return end guiSetVisible(Window_CHK, true) end addEventHandler("onClientMarkerHit", getRootElement(), onClientMarkerHit) Toner resource client.lua function MarkerHit(hitPlayer, matchingDimension) if getElementData (source, "isToner") == true and hitPlayer == getLocalPlayer() and isPedInVehicle(hitPlayer) then if getVehicleController ( getPedOccupiedVehicle(hitPlayer) ) == getLocalPlayer() and isLegalVehicle(getPedOccupiedVehicle(hitPlayer)) then local veh = getPedOccupiedVehicle(hitPlayer) if not veh then return end if getPedOccupiedVehicleSeat(hitPlayer) ~= 0 then return end triggerServerEvent("removePeds",hitPlayer, veh) guiSetVisible(wndToner, true) showCursor(true) tmpDimension = getElementDimension (hitPlayer) tmpPosition[1],tmpPosition[2],tmpPosition[3] = getElementPosition(getPedOccupiedVehicle(hitPlayer)) tmpPosition[4],tmpPosition[5],tmpPosition[6] = getElementRotation(getPedOccupiedVehicle(hitPlayer)) vehicleDimensionUpdate(hitPlayer,0) setElementPosition (getPedOccupiedVehicle(hitPlayer),Point[1],Point[2],Point[3]) setElementRotation (getPedOccupiedVehicle(hitPlayer),Point[4],Point[5],Point[6]) triggerServerEvent("SES", getPedOccupiedVehicle(hitPlayer), false) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("", 0, 191, 255, true) outputChatBox("#FFFFFFRU: Добро пожаловать в тонировочный центр.", 0, 191, 255, true) outputChatBox("#FFFFFFEN: Welcome to the tinting center.", 0, 191, 255, true) outputChatBox("#FFFFFFRU: Нажмите ПКМ, чтобы скрыть/показать курсор.", 0, 191, 255, true) outputChatBox("#FFFFFFEN: Press RMB to hide/show cursor.", 0, 191, 255, true) mouseToner = true local gc = getElementData(localPlayer,"numToner") if not gc then setElementData(localPlayer,"numToner",1) end end end end addEventHandler("onClientMarkerHit", getRootElement(), MarkerHit) fuel resource cl_gas.lua addEventHandler ( "onClientMarkerHit", getRootElement(), function(ply) if ply == localPlayer then if getElementData(source,"fuelstation") then local veh = getPedOccupiedVehicle(ply) if veh and getVehicleController(veh) == ply then if getElementData(ply,"mechanic_works") then outputChatBox("RU: Введите команду /acceptfill для залива топлива",0,255,0,true) outputChatBox("EN: Enter the /acceptfill command to fill fuel",0,255,0,true) elseif getElementData(ply,"gasoline_works") then for k,m in pairs(getElementsByType("marker")) do if getElementData(m,"fuel:capacity") and isElementWithinMarker(veh, m) then setElementData(m,"fuel:capacity",10000) end end else initFuelWindow() end end end end end) Photo debugscript 3
  15. Thank you so much, low bow.
  16. The problem is solved as follows: Open mtaserver.conf and look for the line <! - By default, the server will block the use of customized GTA: SA data files. -> <! - To allow specific client files, add one or more of the following: -> and below this line write this <client_file name = "data / carmods.dat" verify = "0" /> check for this file there will be no server side since the client side check is canceled. Please like me if you helped, thank you very much in advance.
  17. How to fix this error addEventHandler("onClientGUIClick", resourceRoot, function() if (source == Grid_VS) then local carName = guiGridListGetItemText(Grid_VS, guiGridListGetSelectedItem(Grid_VS), 1) local carID = getVehicleModelFromNewName(carName) or getVehicleModelFromName(carName) local c1, c2, c3, c4 = unpack(vehicleSpeeds[carID]) guiSetText(cLbl[1], "Stoke. speed: "..c1.." km/h.") guiSetText(cLbl[2], "Max. speed: "..c2.." km/h.") guiSetText(cLbl[3], "Acceleration 0-100 for "..c3.." s.") guiSetText(cLbl[4], "Drive unit: "..c4..".") end end)
  18. I found this event in the scoreboard resource, hid it in the code and the error in the debugging and console disappeared, thank you all very much.
  19. but I don’t know which named resource this error is
  20. Hello everyone LUA programmers, dear people. How to implement the disappearance of an icon on the map and radar? Well, in general, I click on the button in the goo menu there, for example .. start work and so that not all the icons from the map disappear, namely a certain id of the icon from the map, how to do this, please help. I will do with you.
  21. ERROR: Client (Pss00) triggered serverside event onDownloadFinish, but event is not added serverside
  22. It didn’t help, but I’m a bit the same programmer, no matter how I do the project from scratch, in general, I solved this problem the topic is that referring to the settuner function I made a reference to the deltoner to remove tinting, and errors do not come out anymore, I am a genius. Textures t1 in deltoner, and in settoner t1 and it worked) function setToner(veh, t1, t2, t3, p1, p2, p3) shader1[veh] = dxCreateShader("files/toner.fx") engineApplyShaderToWorldTexture(shader1[veh], texture1, veh) dxSetShaderValue(shader1[veh], "gTexture", dxCreateTexture("files/texture"..t1..".png") ) dxSetShaderValue(shader1[veh], "gAlpha", p1, t1) ... end addEvent("setToner", true) addEventHandler("setToner", getRootElement(), setToner) function delToner(veh) if not getElementData(veh, "toner1") then setElementData(veh, "toner1", "4") end ... if not getElementData(veh, "t1") then setElementData(veh, "t1", 0.4) end end Locked topic thank you for your help
×
×
  • Create New...