Jump to content

RedKacsa

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by RedKacsa

  1. RedKacsa

    Hi!

    Now do not make any mistakes! Thank you very much for helping everyone.
  2. RedKacsa

    Hi!

    Thanks! I test it.
  3. RedKacsa

    Hi!

    "[Time] WARNING: rablas\rob.lua:8: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nill]" "[Time] WARNING: rablas\rob.lua:14: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nill]"
  4. RedKacsa

    Hi!

    Thanks! I already try it! I inserted it in the script, but it writes something wrong. There are two types of "addEventHandler" problems. Can you help me here? I've noticed in the 8th and 14th line the issue with addEventHandler but I do not know what it is :/
  5. RedKacsa

    Hi!

    Robbery Script Animation HELP ME I want to put in a robbery script for an animation for 4-5 seconds, but I do not know how and where to fit it. If someone came to this, he could help. I tried 2-3 things, but none of them worked. Here is my scrip,too, who would like to fit the appropriate script and write it to me, thank you very much! Script: function createRob() Marker = createMarker ( 1788.9731445313,-1123.0570068359,23.5, "cylinder", 1, 255, 0, 0, 5 ) setElementCollisionsEnabled( Marker, false ) bl = createBlipAttachedTo(Marker,45) outputChatBox( "", root, 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createRob) addEventHandler("onMarkerLeave",root, 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) outputChatBox("",root,0,255,0,true) setTimer( createRob, 600000, 1 ) end )
  6. RedKacsa

    Animation

    Help me please!
  7. RedKacsa

    Animation

    I should have a robbery script in a robbery animation (cat_safe_rob) if someone could help the whole script here, and if anyone knows where and what to write, to take a robbery animation for a few seconds, you can paste it for me. Thanks in advance. Script: function createRob() Marker = createMarker ( 1788.9731445313,-1123.0570068359,23.5, "cylinder", 1, 255, 0, 0, 5 ) setElementCollisionsEnabled( Marker, false ) bl = createBlipAttachedTo(Marker,45) outputChatBox( "", root, 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createRob) addEventHandler("onMarkerLeave",root, 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) outputChatBox("",root,0,255,0,true) setTimer( createRob, 600000, 1 ) end )
×
×
  • Create New...