Jump to content

Shady1

Members
  • Posts

    906
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Shady1

  1. If there is another topic, you can open a new topic, I am ready to help 24/7. fun games
  2. hi ๖ۣۜζ͜͡RapGod, i want to help you with this i will give you some code you should try this. function toggleWindow() if(guiGetVisible(panelWindow) == false) then guiSetVisible(panelWindow, true) showCursor(true) else guiSetVisible(panelWindow, false) showCursor(false) end end bindKey("o", "down", toggleWindow) You can check if the panel is visible with guiGetVisible() no variable needed
  3. I'm too late to write this message but happy birthday anyway I will stay more interactive with the mta forum site from now on.
  4. i tried the server, and it's a nice work, you can rate it.
  5. I recommend it, it's a really nice project, llYAMA Well done.
  6. Shady1

    drop item

    can you give some more information or code
  7. hello MTA community, I have a question, MTA background image change would be nice
  8. I like the system, but it may not be preferred in terms of price, if you can consider a price reduction, maybe a few people can evaluate it
  9. Nice work, I wish you continued success.
  10. you can thank me for helping @Polak0
  11. Hello Polak0,Unfortunately, you cannot create a rideable vehicle on the server side at the moment, but you can do it on the client side. local id_sultan addEventHandler("onClientResourceStart", resourceRoot, function() id_sultan = engineRequestModel("vehicle", 411) local txd = engineLoadTXD("sultan.txd") engineImportTXD(txd, id_sultan) local dff = engineLoadDFF("sultan.dff") engineReplaceModel(dff, id_sultan) outputDebugString("Custom sultan id: "..id_sultan) end ) addCommandHandler ("sultan", function () triggerServerEvent("requestCreateCustomSultan", root, id_sultan) end) addEvent("createCustomSultan", true) addEventHandler("createCustomSultan", root, function() createVehicle(id_sultan, 0, 0, 3) end ) this is sample code. server : addEvent("requestCreateCustomSultan", true) addEventHandler("requestCreateCustomSultan", root, function() triggerClientEvent(root, "createCustomSultan", root) end )
  12. This is not the script request section, you have to do it yourself, if there is an error, let us know,we can fix your file.
  13. @LeonardoWilliams guiGetText(v.edit) Try.
  14. there is a problem with the file links
  15. use createPed to create pad use setElementInterior and setElementDimension to set pad interior and dimension local thePed = createPed(0, 0, 0, 0) setElementInterior(thePed, 3) setElementDimension(thePed, 44) this code creates a pad with coordinates 0, 0, 0 and makes interior 3 and dimension 44 If you did this from the map editor, make sure the pad's interior is 3 and its dimension is 44 now that's all i can help you, you can do the rest.
  16. then you should make interior and dimension the same,I can help better if you post the full code here,do as i say first, if still problem, send whole code setElementInterior and setElementDimension
  17. look, elements have dimensions,your way of thinking is wrong,Do you want the object to appear?
  18. local mark = createMarker(-2409.56738, -598.22534, 130.64844, "cylinder", 3, 0, 255, 0, 155) function enter(hitElement, matchingDimension) if(getElementType(hitElement) == "player") then setElementDimension(hitElement, 44) setElementInterior(hitElement, 3, -2027.9200, -105.1830, 1035.1720) end end addEventHandler ("onMarkerHit", mark, enter) You will be teleported as interior id 3, as I know it should be 10 in normal gta setElementInterior(hitElement, 3, -2027.9200, -105.1830, 1035.1720) if it doesn't work change it to id 10
  19. Do you want to change the interior of the player? because dimension and interior are different things
  20. if you tell me exactly what you want i can help, explain it nicely.
  21. Sorry for the first information I gave, you can use this command int engineRequestModel ( string elementType [, int parentID ] )
  22. hi, i sent you a link, can you check it? https://wiki.multitheftauto.com/wiki/CreateObject
×
×
  • Create New...