MIKI785

Members
  • Content count

    1,032
  • Joined

  • Last visited

Community Reputation

43 Good

4 Followers

About MIKI785

  • Rank
    Hard-@ss
  • Birthday 21/04/1997

Details

  • Location
    Dublin, Ireland

Recent Profile Visitors

1,851 profile views
  1. Shoutall problem

    You're mixing client and server side functions... you have to use triggerClientEvent in this case.
  2. [HELP] Server taking for 30 fps

    If there are errors in the script occurring every frame then that can decrease the FPS.
  3. [HELP] engineLoadDFF using raw data

    Are you asking how to dump the whole file in one go? Just use fileGetSize like so: buffer = fileRead(hFile, fileGetSize(hFile))
  4. Listen for onClientGUIFocus and onClientGUIBlur.
  5. [HELP] Get element from a Table?

    Yeah, simply loop through it and use getElementType. Or you could set the parent of all the attached elements to the vehicle using setElementParent and then simply use getElementsByType utilising the second argument.
  6. Hi!

    That's because Marker is nil when addEventHandler is called. Simply remove the onClientResourceStart, I don't think there is any need for it in this case. Marker = createMarker(1788.9731445313, -1123.0570068359, 23.5, "cylinder", 1, 255, 0, 0, 5) setElementCollisionsEnabled(Marker, false) bl = createBlipAttachedTo(Marker, 45) addEventHandler("onMarkerHit", Marker, function(player) -- Attach the event handler to the marker so it detects when a player enters it. if (player) and (getElementType(player) == "player") then -- If the element who entered the marker was a player. setPedAnimation(player, "ROB_BANK", "CAT_SAFE_OPEN", 4000, false, false, false, false) -- Play an animation in the ROB_BANK category for 4000ms. end end) addEventHandler("onMarkerLeave", Marker, function(player) if (source ~= Marker) then return end if (isPedInVehicle(player)) then return end destroyElement(Marker) destroyElement(bl) randomMoney = math.random(22000, 22000) randomWanted = math.random (5, 5) givePlayerMoney(player, randomMoney) setPlayerWantedLevel(player, randomWanted) robPlayer = getPlayerName(player) setTimer(createRob, 600000, 1) end)
  7. [Help] 2 textures in 1 object

    One word: Shader. You're talking about objects but then you mention a weapon, so which one is it? Because afaik weapons are not elements, so you can't limit engineApplyShaderToWorldTexture to a single weapon.
  8. You're missing an end to close the function. engedelyezettserial = { [""]=true, -- NoOne [""]=true, -- Mili ["9BC41DB2DB129348886FB6A5603433F2"]=true, -- Jani } g_Me = getLocalPlayer( ); g_Root = getRootElement( ); g_ResRoot = getResourceRootElement( ); addEventHandler( "onClientResourceStart", g_ResRoot, function( ) if engedelyezettserial[getPlayerSerial(thePlayer)] then bindKey( "vehicle_fire", "both", toggleNOS ); bindKey( "vehicle_secondary_fire", "both", toggleNOS ); end --end of If end --end of Function ) function toggleNOS( key, state ) local veh = getPedOccupiedVehicle( g_Me ); if engedelyezettserial[getPlayerSerial(thePlayer)] then if veh and not isEditingPosition then if state == "up" then removeVehicleUpgrade( veh, 1010 ); setControlState( "vehicle_fire", false ); else addVehicleUpgrade( veh, 1010 ); end end end Btw. getPlayerSerial is deprecated on the client side, see the wiki.
  9. Use the event onPlayerLogin.
  10. GUI Over DX Image

    Unless you set the postGUI argument in dxDrawImage to true then the GUI should be on top of the image at all times.
  11. what should I do?

    I don't see any issues there. As long as the 'zombies' event gets triggered then the other two should get handled as well. Did you get anything in the debug?
  12. GUI Over DX Image

    What do you mean by 'set font of an image'?
  13. How to replace paintjobs?

    You can't use engineImportTXD as this function takes a model ID as an argument and paintjobs are not models. You have to use a shader to replace paintjob textures.
  14. Use isLineOfSightClear; first set of coordinates would be the vehicle and the second would be z+100 as in your code. You may also have to disable vehicle check.
  15. mysql Problem Help me Please

    You're missing the mysql module. See here: https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL.