Shux

Members
  • Content Count

    504
  • Joined

  • Last visited

  • Days Won

    1

Shux last won the day on May 16

Shux had the most liked content!

Community Reputation

11 Decent

2 Followers

About Shux

  • Rank
    Playa Partner
  • Birthday 02/02/1997

Details

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

Recent Profile Visitors

705 profile views
  1. I don't get it. you have all the information you need right there for saving/receiving data to/from an account. what do you mean exactly? Provide more details
  2. -- Replace an MTA Object with your custom interior model using these engineLoadDFF engineReplaceModel engineLoadCOL engineReplaceCOL engineLoadTXD engineImportTXD -- Create the model using createObject -- Set the object to an interior using setElementInterior Where you warp depends on where you create it
  3. He's saying there was no reason to use 'getPedOccupiedVehicleSeat' as the seat is already provided , so checking for the player's seat is completely pointless. This would be your new code. function checkCarJack(thePlayer, seat, jacked) if ( jacked ) and ( seat == 0 ) then outputChatBox("[!] #f0f0f0CarJack atmanız yasaklanmıştır!", thePlayer, 255, 0, 0, true) cancelEvent() end end addEventHandler("onVehicleStartEnter", getRootElement(), checkCarJack)
  4. Shux

    Gta map to MTA

    https://www.upload.ee/files/10104663/Hakone.zip.html There you go
  5. 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
  6. I'd suggest using element data. And store it however you feel like
  7. Shux

    echo dxDrawRectangle

    addEventHandler ( "onClientRender", root, theFunction)
  8. 1- For data saving on objects I'd suggest using SQLite(or MySQL) 2- You could use tables.
  9. 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.
  10. 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
  11. 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)
  12. Shux

    [help] example

    https://wiki.multitheftauto.com/wiki/Main_Page Tons there
  13. 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 )
  14. https://wiki.multitheftauto.com/wiki/GuiComboBoxGetSelected https://wiki.multitheftauto.com/wiki/GuiComboBoxGetItemText