Jump to content

Potato_Tomato420

Members
  • Posts

    54
  • Joined

  • Last visited

About Potato_Tomato420

  • Birthday 14/08/1995

Details

  • Gang
    Los Santos
  • Location
    The Netherlands
  • Occupation
    Scripting
  • Interests
    Roleplay

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Potato_Tomato420's Achievements

Snitch

Snitch (10/54)

4

Reputation

  1. Hi all, Is it possible to force a burrito to have cargo inside the loading area?
  2. So I want to create moving vehicles and walking peds in a scene. For example a intro movie/scene for a new player. What's the best way to make this possible? Edit: Found something on the community
  3. Thx!! Got it working I created a function to check if the lineOfSightClear is clear from any object and then triggerServerEvent to spawn the vehicle.
  4. Hi all, is it possible to detect a gta world object within a colshape? For example: can i create a colshape in front of the player and then use isElementWithinColShape to detect if there is anyting inside the col? Even a object from the game itself? I have created a vehicle shop with a control panel to spawn purchased vehicles. But i have a little problem with the spawning part. I use getElementPosition to detect the players x, y, z and the createVehicle (x, y, z). But now i can spawn a vehicle inside a wall. To prevent this from happening i want to create a colShape in front of the player and then check if there are any element withing the colShape, so also walls from the game itself. Somebody any idea how i could detect this or resolve it? (Sorry for my english i know it's not great)
  5. Thx! Probably did something wrong with updating Error is gone now! Thx!
  6. Hi all, i get the following error everytime my script is running at the exact line. I have no idea what i'm doing wrong and how i could fix it. I only get this error at the first run of the script, when the blur screen shows up. The second time i run my script then the error won't show up. Only at the first run of the script. I tried updating the dgs resource but still got the error. Thanks! Debug: WARNING: dgs/Core/imageslia:176: Bad argument @ 'dxGetMaterialSize' [Expected material at atgument 1, got dxcustomrender] My code: (The line i think that causes this debug line) Code from: https://wiki.multitheftauto.com/wiki/DgsCreateBlurBox Dgs line:
  7. Already thought it was inpossible, Thx!
  8. Does somebody know if it is possible to rotate a col shape? I tried using setElementRotation but then i found this isn't possible on the wiki page Is there some other way to set the rotation for a col cuboid?
  9. I was wondering if it is possible to create a custom download screen when a new players joins the server. Now i have the default download GUI/ transfer box when a players join the server. What is the best way to hide this Transfer box and create a custom download screen?
  10. How can i disable the shaders? The code below doesn't same to work Very new to this stuff function triggerWorldEffects(state) for i = 1, #texturesimg do if not (shader) then local shader = dxCreateShader("worldEffects/shader/shader.fx") engineApplyShaderToWorldTexture(shader, texturesimg[i][2]) dxSetShaderValue(shader, "gTexture", dxCreateTexture(texturesimg[i][1])) elseif (shader) then engineRemoveShaderFromWorldTexture (shader, texturesimg[i][2]) end end end
  11. Update: already soleved This seems to work: (Line 3, 4 and 5 added) function onColHit (hitElement, matchingDim) if (hitElement == localPlayer) and (matchingDim) then if (getElementData (hitElement, "warpedPoliceDepartment") == false) then setElementData (hitElement, "warpedPoliceDepartment", 0) end if (source == enterCol) and (getElementData (hitElement, "warpedPoliceDepartment") == 0) then setElementData (hitElement, "warpedPoliceDepartment", 1) setElementInterior (hitElement, 6) setElementDimension (hitElement, 1) setElementPosition (hitElement, 246.79, 63.06, 1003.64) elseif (source == exitCol) and (getElementData (hitElement, "warpedPoliceDepartment") == 0) then setElementData (hitElement, "warpedPoliceDepartment", 1) setElementInterior (hitElement, 0) setElementDimension (hitElement, 0) setElementPosition (hitElement, 1555.16, -1675.62, 16.2) end end end addEventHandler("onClientColShapeHit", getRootElement(), onColHit)
  12. So i created a warper to warp a player inside and also outside a building. For some reason the first warp seems to work fine but then when i try it again it spawns me at the exact same location. I use setElementData to prevent the player from looping in the spawn. I think the bug is somewhere in that part. local enCol = createColCuboid (1554.56, -1677.10, 15.2, 1.2, 3, 2.4) local exCol = createColCuboid (245.30, 62.10, 1002.64, 3, 1.2, 2.5) setElementInterior (exCol, 6) setElementDimension (exCol, 1) local policeDepartment = createBlip (1555.16, -1675.62, 15.2, 58) function onColHit (hitElement, matchingDim) if (hitElement == localPlayer) and (matchingDim) then if (source == enCol) and (getElementData (hitElement, "warpedPoliceDepartment") == false) then setElementInterior (hitElement, 6) setElementDimension (hitElement, 1) setElementPosition (hitElement, 246.79, 63.06, 1003.64) setElementData (hitElement, "warpedPoliceDepartment", 1) elseif (source == exCol) and (getElementData (hitElement, "warpedPoliceDepartment") == false) then setElementInterior (hitElement, 0) setElementDimension (hitElement, 0) setElementPosition (hitElement, 1555.16, -1675.62, 16.2) setElementData (hitElement, "warpedPoliceDepartment", 1) end end end addEventHandler("onClientColShapeHit", getRootElement(), onColHit) function onColLeave (leaveElement, matchingDim) if (leaveElement == localPlayer) and (matchingDim) then if (source == enCol) then setElementData (leaveElement, "warpedPoliceDepartment", false) elseif (source == exCol) then setElementData (leaveElement, "warpedPoliceDepartment", false) end end end addEventHandler("onClientColShapeLeave", getRootElement(), onColLeave)
  13. Hi all, I have created a login system for my server and added a guiCreateStaticImage to create a background image. Every time a click on the image it comes on top of the login GUI. Is there a simple way to prevent the image coming op top of the login GUI? For example make the image a non click element? Idk if this is possible?
×
×
  • Create New...