-
Posts
1,239 -
Joined
-
Last visited
Everything posted by -.Paradox.-
-
Hello, i made this script to set the fadecamera when player is in slowmotion but i want it to flash i mean make the screen red and after 1 second come back to normal and after 1 sec will be red and etc thanks addEvent("fadeCamera", true) addEventHandler("fadeCamera", root, function () fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer ( fadeCamera, 500, 1, source ) end)
-
Idk where is the error it should work and it's server side.
-
EDIT: --[[ that's not my code, it's csmit195's i just edited it to work with you're script]]-- --Client Side crosshairShader = dxCreateShader ( "crosshair.fx" ) crosshair = dxCreateTexture("arrow.png") dxSetShaderValue(crosshairShader,"gTexture",crosshair) addEventHandler('onClientRender', getRootElement(), function() if getControlState('aim_weapon') and getPedTarget(localPlayer) and not active and getPedWeapon(getLocalPlayer(),newSlot) == 31 then engineApplyShaderToWorldTexture(crosshairShader,"sitem16") active = true elseif getControlState('aim_weapon') and getPedTarget(localPlayer) and active then elseif active then engineRemoveShaderFromWorldTexture(crosshairShader,"sitem16") active = false end end)
-
You're welcome.
-
https://wiki.multitheftauto.com/wiki/GetPedWeaponSlot
-
dxDrawImage Events : OnPlayerTarget
-
Try it setWeaponProperty (31, "poor", "flags", 0x000004) setWeaponProperty (31, "std", "flags", 0x000004) setWeaponProperty (31, "pro", "flags", 0x000004)
-
Still not working i tried with onZombieWasted too and nothing happened
-
Don't work @xXMadeXx it's the entire script
-
So how i can fix it?
-
Hello, i need help here, can't getPlayerNametagColor WARNING: Class/basic.lua:4: Bad argument @ 'getPlayerNameTagColor' addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) local name = getPlayerName(source) local r,g,b = getPlayerNametagColor (source) if ( msgType == 1 ) then cancelEvent ( ) outputChatBox ( "* " ..name.. "#006400 ".. msg, root, 0, 100, 0, true ) end end )
-
Thank you, i will try it C:
-
Can you fix it to me please? Sorry for annoying
-
Hello, can somebody help me fixing this no errors in debug, this suppose to add +1 point for every weapon stat when you kill a player, like example when i kill somebody with m4 i earn 1 point to m4 etc here is the code and thanks addEventHandler("onZombieWasted", root, function (killer, weapon ,bodypart) if (killer and getElementType(killer) == "player" and killer ~= source) then local Acc = getAccountName ( acc ) for i = 21 , 25 do getPedStat(source,i,getAccountData(Acc, "stat."..i)) end for i = 69 , 79 do getPedStat(source,i,getAccountData(Acc, "stat."..i)) end for i = 21 , 25 do setPedStat(source,i,+1) end for i = 69 , 79 do setPedStat(source,i,+1) end end end)
-
You're welcome.
-
Try this you can also add the clothe you want to replace by adding another line without .txd ["name"] = id, textures = { ["player_face"] = 30418, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD (cloth..".txd") engineImportTXD(txd, id) end end addEventHandler ("onClientResourceStart", resourceRoot, replaceClothes)
-
Try this not tested function helloCommand ( playerSource, commandName, acc ) local accName = getAccountName ( acc ) local theTriggerer = getPlayerName ( playerSource ) triggerClientEvent ( "onHello", getRootElement() ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" )) then outputChatBox ( theTriggerer .. ": #00FF00Hello Man!", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "You can't use this command!", getRootElement(), 255, 0, 0, true) end end
-
Hello, i need help i want change the radar circle to rectangle one, could somebody help me please with a code, or functions i could use to create thanks for helping. PS: radar minimap like gta v one : P
-
Thanks but i want to follow only admin, and this suppose to follow teammate
-
Hello, i have a little question, how to make a ped follow you using slothbot script thanks for help
