stPatrick

Members
  • Content Count

    240
  • Joined

  • Last visited

  • Days Won

    2

stPatrick last won the day on December 16 2018

stPatrick had the most liked content!

Community Reputation

67 Popular

3 Followers

About stPatrick

  • Rank
    Red-Headed Stepchild

Details

  • Gang
    SkyTeam

Recent Profile Visitors

1,366 profile views
  1. stPatrick

    Help me with my download screen

    No killTimer needed, because the setTimer runs once. (And the check is a function and not a timer)
  2. stPatrick

    Help me with my download screen

    You need to create a separeted resource, and make you sure this resource starts before all. You can make it with <download_priority_group>. (Link: https://wiki.multitheftauto.com/wiki/Meta.xml) So, here is the script: -- CLIENT SIDE local sx, sy = guiGetScreenSize() function loadingScreen() dxDrawImage(0, 0, sx, sy, "loadingimage.png") end addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, loadingScreen) local function check() if isTransferBoxActive() then setTimer(check, 1000, 1) else removeEventHandler("onClientRender", root, loadingScreen) end end setTimer(check, 1000, 1) end) And the meta: -- META <meta> <download_priority_group>10</download_priority_group> <!-- IMPORTANT --> <script src="client.lua" type="client"/> <file src="loadingimage.png"/> </meta>
  3. stPatrick

    Script not working help!

    Yes, but make you sure, you are using correct name. function createEffects(_, effectName) createEffect(effectName, Vector3(getElementPosition(getLocalPlayer())), Vector3(getElementRotation(getLocalPlayer()))) end addCommandHandler("createEffect", createEffects)
  4. stPatrick

    help

    You need to change vehicle's position what use the player. Use this function to get the player's vehicle: https://wiki.multitheftauto.com/wiki/GetPedOccupiedVehicle
  5. stPatrick

    onVehicleDamage question

    You can get the broken parts with the 'getVehiclePanelState' function. Only way if you scan all part's state on every damage.
  6. stPatrick

    Help

    -- SERVER SIDE local blockTimers = {} local blockDuration = 5000 addCommandHandler("health", function(player) if blockTimers[player] then local leftSec = getTimerDetails(blockTimers[player]) / 1000 local leftMin = math.floor(leftSec / 60) local leftSec = math.floor(leftSec - (leftMin * 60)) outputChatBox("You already got health. Please wait "..leftMin.." minuntes and "..leftSec.." seconds.", player, 255, 0, 0, true) return false end setElementHealth(player, 100) outputChatBox("Done", player, 0, 255, 0, true) blockTimers[player] = setTimer(function() blockTimers[player] = nil -- destroy timer old details -- information about limit expiration, or something like that -- example: outputChatBox("You can use /health again.", player, 255, 0, 0, true) end, blockDuration, 1) end)
  7. stPatrick

    Return Left Playtime of an Online Sound Stream

    You can get sound's lenght with this function: https://wiki.multitheftauto.com/wiki/GetSoundLength But I don't know it's working with URL.
  8. stPatrick

    Help

    You tried to get details for a number. -- SERVER SIDE local blockTimers = {} local blockDuration = 5000 addCommandHandler("health", function(player) if blockTimers[player] then outputChatBox("You already got health. Please wait "..(getTimerDetails(blockTimers[player]) / 1000).."s.", player, 255, 0, 0, true) return false end setElementHealth(player, 100) outputChatBox("Done", player, 0, 255, 0, true) blockTimers[player] = setTimer(function() blockTimers[player] = nil -- destroy timer old details -- information about limit expiration, or something like that -- example: outputChatBox("You can use /health again.", player, 255, 0, 0, true) end, blockDuration, 1) end)
  9. stPatrick

    grass drawing distance

    https://wiki.multitheftauto.com/wiki/SetWorldSpecialPropertyEnabled setWorldSpecialPropertyEnabled("randomfoliage", false)
  10. stPatrick

    Sit in the hiker to the vehicle

    Oh my god... really.
  11. stPatrick

    Sit in the hiker to the vehicle

    Használd a 'enter_exit'-et, mert a 'enter_passenger'-re csak bindet tudsz tenni ami a settingsbe beállított gombhoz "illeszkedik". (Use 'enter_exit', because 'enter_passenger' is an MTA hard-coded command and you can only bind a function to that.)
  12. stPatrick

    Remove leaves of trees

    I made it. https://community.multitheftauto.com/?p=resources&amp;s=details&amp;id=15863
  13. stPatrick

    WEATHER PROBLEM

    MTA does not change the weather automatically. Find the resource what change and remove IDs from it.
  14. stPatrick

    Remove leaves of trees

    I think you can not destroy the leaves like an object. You can use shaders. Try to load empty (alpha) shader to leaves.
  15. You want to disable jumping? Use this function: https://wiki.multitheftauto.com/wiki/ToggleControl -- server side function disablePedJumping(player) if isElement(player) then return toggleControl(player, "jump", false) end return false end