Jump to content

MisaFix

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MisaFix's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. How am I going to do it? Can anyone send me the code please? I need it. Thank you.
  2. I couldn't even write the code carefully. This is the code im trying to attach to a event. function toggleFlashLight() if flashLiTable.flModel[localPlayer] then triggerServerEvent("onSwitchLight", resourceRoot, false) triggerServerEvent("onSwitchEffect", resourceRoot, false) isLightOn = false unbindKey(switch_key,"down",toggleLight) else triggerServerEvent("onSwitchLight", resourceRoot, false) triggerServerEvent("onSwitchEffect", resourceRoot, true) bindKey(switch_key,"down",toggleLight) end end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource()), function() engineImportTXD( engineLoadTXD( "objects/flashlight.txd" ), objID ) engineReplaceModel ( engineLoadDFF( "objects/flashlight.dff", 0 ), objID,true) triggerServerEvent("onPlayerStartRes", resourceRoot) if autoEnableFL then toggleFlashLight() end addCommandHandler("fener", toggleFlashLight) exports.dynamic_lighting:setWorldNormalShading(false) end )
  3. Hello. I'm using this flashlight script: https://community.multitheftauto.com/index.php?p=resources&s=details&id=6858 Im trying to trigger the toggleFlashLight() when the player changes his skin to 66. But i couldn't make it. So basically, when the user has the skin ID 66, the toggleFlashLight() function will happen. I'd love to get some help.
  4. Hello, i want to make a script that when player starts swimming, a sound will play. I tried to use codes like [if isElementInWater then playSound("sounds/test1.mp3")] but they didnt work.
  5. Thank you so much, it works. But i have one more question. How can i make it for multiple groups? Like EGM, TEST2, TEST3 etc.
  6. I tried to write a script that takes your weapons if you are not in the acl group EGM but it fails i dont know why. Can you guys please help me? Im new on scripting function test1 ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "EGM" ) ) then else takeWeapon (player) outputChatBox ( "Tagın olmadığı için silahların alındı.", player, 255, 0, 0, true ) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), test1 )
  7. MisaFix

    Drive-by Bug

    Hello. Im using "realdriveby" script that got released by Talidan few years ago. I fixed some bugs on the script but there is a bug that I cant fix. When you are drive-bying, you are not affected from headshots. Even if u get damage, it doesn't kills you instantly. This is the script: https://community.multitheftauto.com/index.php?p=resources&s=details&id=57 Thanks.
×
×
  • Create New...