Jump to content

MatreN

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by MatreN

  1. Hello guys, how do i rotate car 360 degrees so endlessly?
  2. I'm sorry, I am very careless in these jobs. XD
  3. The collision on the object is true, but it is passed through inside the object. function replaceObject() txd = engineLoadTXD ( "MRoadTwist15DegR.txd" ) engineImportTXD ( txd, 4150) dff = engineLoadDFF ( "MRoadTwist15DegR.dff", 4150) engineReplaceModel ( dff, 4150) col = engineLoadCOL( "MRoadTwist15DegR.col", 4150) engineReplaceCOL ( dff, 4150) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceObject)
  4. its working, but it goes through the object. @Tut
  5. 1. I extract cs_ebridge.txd from the gta3.img file and changed the name of the file, I did Example MRoadTwist15DegR.txd. 2. And then I wrote it into meta.xml and scripts.lua. I then tried it in another way. MRoadTwist15DegR.col MRoadTwist15DegR.dff cs_ebridge.txd I tried as. But it didn't work.
  6. i try to it did not work @gubi
  7. no .txd files, only .dff, .col.
  8. Hi guys, I uploaded samp objects to my own mapping server, but they look white.
  9. guys need samp 0.3 objects, where can I find it
  10. Hello Friends I wrote an Invisible object script. But invisible objects are not visible, there is no function. https://www.imageupload.net/image/Lz6wb Gamemode : [DM] Race local invisibles = {} local enabled = true local airport = { 8171, 8172, 8355, 8356, 8357, 3458, 8838, 8558, 8557 } function onMapStarted() invisibles = {} setTimer(getInvisibleObjects, 2000, 1) end addEventHandler("onClientMapStarting", getRootElement(),onMapStarted) function getInvisibleObjects() for i, o in ipairs(getElementsByType("object")) do if(getObjectScale(o) == 0 or getElementAlpha(o) == 0)then table.insert(invisibles, o) else local oid = getElementModel(o) for k, id in ipairs(airport)do if(oid == id)then table.insert(invisibles, o) end end end end update() end bindKey("f10", "up", function() --if not getElementData(localPlayer,"login") then return end enabled = not enabled if(enabled)then create("Invisible Objects are now","visible", 0, 255, 0) else create("Invisible Objects are now","invisible", 255, 0, 0) end update() end ) function update() if(enabled)then for i, o in ipairs(invisibles)do setObjectScale(o, 1) setElementAlpha(o, 255) setElementDoubleSided(o, true) end else for i, o in ipairs(invisibles)do setObjectScale(o, 0) setElementAlpha(o, 0) setElementDoubleSided(o, false) end end end
  11. Hello friends, I don't have see a water script.
  12. I want to add a marker to this, but I don't know @stPatrick
  13. Hello guys, I want to switch black and white screen, but I don't know how to do it, can you help me? I want it to work when we touch the marker.
  14. Would you rewrite this to me? I really did not understand anything. I also couldn't run what was Marker. @XaskeL
  15. Hello friends I want to give 3d glitch effect when the marker is touched. How will I do.
  16. I have a water script but water is showing that way. What should I do.
  17. I am not aware, I have to be careful with this. ?
  18. local sX, sY = guiGetScreenSize() local customFonts = dxCreateFont("Roboto-Light.ttf", 82, true) local scale = {(sX/1920) * (sY/1080)}/2 local R, G, B = 255, 255, 255 function drawRects() --dxDrawRectangle(0, 0, sX*0.104, sY*0.185, tocolor(R, G, B)) --dxDrawRectangle(sX*0.104, 0, sX*0.104, sY*0.185, tocolor(0, 255, 0)) dxDrawText("Hello There!", 0, 0, sX, sY, tocolor(R, G, B) , scale*0.5, customFonts "right", "bottom") end addEventHandler("onClientRender", root, drawRects) function changeColor(_, r, g, b) R, G, B = r, g, b end addCommandHandler("rekt", changeColor) I want to print a text on the screen, but I get this error. ERROR : dxDrawText/text.Lua:5: attempt to perform arithmetic on a table value
  19. @xFabel Thanks Bro ( ͡°◡ ͡° )
  20. (int model) will be replaced with vehicle name?
×
×
  • Create New...