Shux

Members
  • Content Count

    494
  • Joined

  • Last visited

  • Days Won

    1

Shux last won the day on May 16

Shux had the most liked content!

Community Reputation

11 Decent

1 Follower

About Shux

  • Rank
    Hustler
  • Birthday 02/02/1997

Details

  • Location
    Trinidad & Tobago
  • Occupation
    Scripter
  • Interests
    Scripting - Mapping - Helping

Recent Profile Visitors

634 profile views
  1. Shux

    Gta map to MTA

    https://www.upload.ee/files/10104663/Hakone.zip.html There you go
  2. local spawnDelayTime = 120000 -- delay time in ms local spawnTimer = { } function carSpawn () if isTimer(spawnTimer[source]) then local timeleft = math.ceil( getTimerDetails(spawnTimer[source])/1000 ) -- Get seconds left from timer if timeleft then local secondString = " second" if timeleft > 1 then secondString = " seconds" end outputChatBox("You may spawn your vehicle again in "..tostring(timeleft)..secondString) return false end else if not (isGuestAccount (getPlayerAccount (source))) and not (isPedInVehicle(source)) then spawnTimer[source] = setTimer(function(source) spawnTimer[source] = false end,spawnDelayTime,1,source) end end end
  3. I'd suggest using element data. And store it however you feel like
  4. Shux

    echo dxDrawRectangle

    addEventHandler ( "onClientRender", root, theFunction)
  5. 1- For data saving on objects I'd suggest using SQLite(or MySQL) 2- You could use tables.
  6. Basically: --Client local newElement = createMarker(0,0,0,"cylinder",1,255,255,255,255) if ( newElement ) then setElementData(newElement, "meat", (getElementData(newElement, "meat") or 0) + 10) end As long as this is client-sided it should work as intended.
  7. Shux

    onDgsMouseClick

    addEventHandler("onDgsMouseClick", root, function(btn,state) local sw, sh = guiGetScreenSize() local px, py = sw/1920,sh/1080 local myfontt = DGS:dgsCreateFont( "fonts/Roboto-Medium.ttf", 9 ) if ( state == "down" ) then if source == buttont then if (DGS:dgsCheckBoxGetSelected(v11) ~= true) and (DGS:dgsCheckBoxGetSelected(v12) ~= true) and (DGS:dgsCheckBoxGetSelected(v13) ~= true) and (DGS:dgsCheckBoxGetSelected(v14) ~= true) then vibot1 = DGS:dgsCreateLabel(210,130,20,40,"Choose Answer!",false,vopros1) DGS:dgsLabelSetColor ( vibot1, tocolor(255, 0, 0, 255 ) ,true ) DGS:dgsSetFont(vibot1,myfontt) playSoundFrontEnd ( 4 ) else
  8. Shux

    [HELP] Set Timer

    'client' isn't defined in the function with the timer. addEvent("getTicket",true) addEventHandler("getTicket", root, function() setElementInterior(client, 1) setElementPosition(client, 1.76953125 ,28.478515625 ,1199.59375) outputChatBox("#00ff00You are now in air plane!", client, 255, 255, 255, true) setTimer( function(client) setElementInterior(client, 0) setElementPosition(client, 1685.8193359375 ,-2237.5400390625 ,13.546875) outputChatBox("#00ff00Welcome To Los Santos!", client, 255, 255, 255, true) end , 60000, 1 ,client) end)
  9. Shux

    [help] example

    https://wiki.multitheftauto.com/wiki/Main_Page Tons there
  10. This is what you want local startbus = createMarker ( 2184.10229, -1451.73291, 25.55586, "cylinder",1.0,254,239,0,255 ) if ( startbus ) then local startbusblip = createBlipAttachedTo ( startbus , 46, 2, 255, 0, 0, 255, 0, 16383) end function startjobbus() if ( not bus ) then bus = createVehicle ( 431, 2180.24292, -1460.47717, 25.53906 ) if ( bus ) then warpPedIntoVehicle ( localPlayer, bus ) end end end addEventHandler( "onClientMarkerHit", startbus, startjobbus )
  11. https://wiki.multitheftauto.com/wiki/GuiComboBoxGetSelected https://wiki.multitheftauto.com/wiki/GuiComboBoxGetItemText
  12. Basically the main things you need.. https://wiki.multitheftauto.com/wiki/TriggerServerEvent https://wiki.multitheftauto.com/wiki/TriggerClientEvent https://wiki.multitheftauto.com/wiki/PlaySound
  13. You pretty much wanna do something like this. function testImage() dxDrawImage(0,0,50,50,"image.png") end function createOnClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if ( clickedElement ) then addEventHandler("onClientRender",root,testImage) end end addEventHandler ( "onClientClick", getRootElement(), createOnClick )
  14. Shux

    setTimer

    Place that code into the event where the first button is clicked (make sure you put it after checking if the button clicked is the button you're looking for)
  15. Oops, this is what you want here. if source == bv2 then if ( DGS:dgsCheckBoxGetSelected(v12) == true ) and ( DGS:dgsCheckBoxGetSelected(v14) == true ) then window5 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"+",false) elseif ( DGS:dgsCheckBoxGetSelected(v12) ~= true ) and ( DGS:dgsCheckBoxGetSelected(v14) ~= true )then window6 = DGS:dgsCreateWindow((sw-424)/2,(sh-363)/2,400,200,"-",false) end end