
undefined
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by undefined
-
Ok thanks. Im solved it...
-
Thnx bro. And how to disable this;
-
Hi guys. Im work on the new freeroam panel. I have a question. How to cancel this event?
-
Thank you Max+. Im fixed it. And thank you xXMADEXx and Solidsnake14.
-
Hi guys. Im search the cancel fall bike. What is the fall bike code?
-
Yes. Im fixed it. And, There is an error in debugscript. Error; It's first error. This error occurs when I remove the following code: if isElement(koleksiyon[player].spawnBribe) then -- Line 260 destroyElement(koleksiyon[player].spawnBribe) koleksiyon[player].spawnBribe = nil if isTimer(koleksiyon[player].timer) then killTimer(koleksiyon[player].timer) end end if isElement(koleksiyon[player].corona) then destroyElement(koleksiyon[player].corona) koleksiyon[player].corona = nil if isTimer(koleksiyon[player].timer) then killTimer(koleksiyon[player].timer) end end Code: koleksiyon = { } function afterTaskSpawn ( player ) randomspawnA69 = math.random( 1, #area69) randomspawnSK = math.random( 1, #sillentKillers) local x, y, z = getElementPosition(player) local rx, ry, rz = getElementRotation(player) local playerAccount = getPlayerAccount( player ) local isAccount = ( playerAccount and not isGuestAccount( playerAccount ) ) and true or false if not isElement( player ) then return end showChat( player, true ) if isAccount and getAccountData( playerAccount, "task" ) then if isObjectInACLGroup ( "user.".. getAccountName( getPlayerAccount( player ) ), aclGetGroup ( "Admin" ) ) then spawnPlayer( player, area69 [randomspawnA69][1], area69 [randomspawnA69][2], area69 [randomspawnA69][3], area69 [randomspawnA69][4], area69 [randomspawnA69][5], area69 [randomspawnA69][6], area69 [randomspawnA69][7] ) setPedAnimation( player, "ped" , "WALK_gang1" ) setTimer( function () setPedAnimation(player,nil,nil) end, 5000, 1) spawnBribe = createObject(1247, x, y, z, rx, ry, rz) attachElements( spawnBribe, player, 0, 0, 1.1 ) setElementCollisionsEnabled (spawnBribe, false) setObjectScale ( spawnBribe, 0.7) corona = createMarker( x, y, z, "corona", 0.2, 255, 255, 0, 255 ) attachElements( corona, player, 0, 0, 1.1 ) koleksiyon[player].spawnBribe = spawnBribe -- Line 173 koleksiyon[player].corona = corona spawnBribe = nil corona = nil timer = setTimer( function () if isElement(koleksiyon[player].corona) then destroyElement(koleksiyon[player].corona) koleksiyon[player].corona = nil end if isElement(koleksiyon[player].spawnBribe) then destroyElement(koleksiyon[player].spawnBribe) koleksiyon[player].spawnBribe = nil end end, 15000, 1) end end fadeCamera( player, true ) setCameraTarget( player, player ) end addEventHandler( "onPlayerWasted", root, function( ) if isElement(koleksiyon[player].spawnBribe) then -- Line 260 destroyElement(koleksiyon[player].spawnBribe) koleksiyon[player].spawnBribe = nil if isTimer(koleksiyon[player].timer) then killTimer(koleksiyon[player].timer) end end if isElement(koleksiyon[player].corona) then destroyElement(koleksiyon[player].corona) koleksiyon[player].corona = nil if isTimer(koleksiyon[player].timer) then killTimer(koleksiyon[player].timer) end end local playerAccount = getPlayerAccount( source ) local isAccount = ( playerAccount and not isGuestAccount( playerAccount ) ) and true or false if ( isAccount ) and ( getAccountData( playerAccount, "task" ) ) then triggerClientEvent(source, "onWasted" , source) setTimer(afterTaskSpawn, 13500, 1, source ) end end )
-
It's not work. The player isn't spawn and it's not give error or warning on debug.
-
Can you write simple example?
-
Hi guys. Im work on the spawn system. But i have a problem. When he died two players simultaneously, in one player "spawnbribe" and "corona" can not be destroyed. How to fix it? function afterTaskSpawn ( player ) local x, y, z = getElementPosition(player) local rx, ry, rz = getElementRotation(player) local playerAccount = getPlayerAccount( player ) local isAccount = ( playerAccount and not isGuestAccount( playerAccount ) ) and true or false if not isElement( player ) then return end showChat( player, true ) if isAccount and getAccountData( playerAccount, "task" ) then if isObjectInACLGroup ( "user.".. getAccountName( getPlayerAccount( player ) ), aclGetGroup ( "Admin" ) ) then spawnPlayer( 306, 2020, 17.6, 90, 285 ) spawnBribe = createObject(1247, x, y, z, rx, ry, rz) attachElements( spawnBribe, player, 0, 0, 1.1 ) setElementCollisionsEnabled (spawnBribe, false) setObjectScale ( spawnBribe, 0.7) corona = createMarker( x, y, z, "corona", 0.2, 255, 255, 0, 255 ) attachElements( corona, player, 0, 0, 1.1 ) timer = setTimer( function () if isElement(corona) then destroyElement(corona) corona = nil end if isElement(spawnBribe) then destroyElement(spawnBribe) spawnBribe = nil end end, 15000, 1) end end end addEventHandler( "onPlayerWasted", root, function( ) if (spawnBribe) then if isElement(spawnBribe) then destroyElement(spawnBribe) spawnBribe = nil if isTimer(timer) then killTimer(timer) end end end if (corona) then if isElement(corona) then destroyElement(corona) corona = nil if isTimer(timer) then killTimer(timer) end end end local playerAccount = getPlayerAccount( source ) local isAccount = ( playerAccount and not isGuestAccount( playerAccount ) ) and true or false if ( isAccount ) and ( getAccountData( playerAccount, "task" ) ) then triggerClientEvent(source, "onWasted" , source) setTimer(afterTaskSpawn, 13500, 1, source ) end end )
-
Help..!
-
I've already add new sounds to weapons. However, reduce the voice of new sounds, original gta gunfire emerges. How do I remove the original gunfire sound?
-
Hi Guys. Im work on the weapon sound system but i have a problem. I want to disable the original weapon sound. Im how to make this?
-
handlerExist = false function openClose() if (handlerExist == false) then handlerExist = true addEventHandler("onClientRender",root,functionName) elseif (handlerExist == true) then handlerExist = false removeEventHandler("onClientRender",root,functionName) end end bindKey("F11", "down", openClose)
-
Hi guys. Im work on the weapon level system. But i have a problem. When i click the DLev1 button, setWeaponProperty event is taking place for everyone. But I want to happen to people who click. How do it? --[[Client-Side]]-- local x, y = guiGetScreenSize () addEventHandler("onClientResourceStart", resourceRoot, function() DLev1 = guiCreateStaticImage((x/2)-12.5 , (y/2)-17.5, 25, 35, "images/egg.png", false) addEventHandler ( "onClientGUIClick", DLev1, DLev11, false ) end ) function DLev11() if (getPlayerMoney(source) >= 2250) then if ( guiGetEnabled (DLev1) == true ) then guiStaticImageLoadImage(DLev1, "images/egg_sel.png" ) guiSetAlpha(DLev1, 1.00) guiSetEnabled ( DLev1, false ) end end triggerServerEvent ( "DeagleStats1", root) end --[[server-Side]]-- deagle_damage = 0.40 function DLev1() if (getPlayerMoney(client) >= 2250) then takePlayerMoney ( client, 2250 ) setPedStat(client, 71, 200) setElementHealth (client, 121) setElementData( client, "deagle_level", 1 ) local damage_poor = getWeaponProperty(24, "poor", "damage") local damage_std = getWeaponProperty(24, "std", "damage") local damage_pro = getWeaponProperty(24, "pro", "damage") setWeaponProperty(24, "poor", "damage", damage_poor+deagle_damage) setWeaponProperty(24, "std", "damage", damage_std+deagle_damage) setWeaponProperty(24, "pro", "damage", damage_pro+deagle_damage) end end addEvent ("DeagleStats1", true) addEventHandler ( "DeagleStats1", root, DLev1)
-
Sry for my double post. Im fixed this warning on "onPlayerSpawn" event. Thank you Et-win.
-
Can you explain a little more?
-
Does not work. Gives the same warning.
-
Hi guys. Im work on the spawn system. But i have a problem. It's give this warning. How to fix it? Sever-Side Client-Side
-
Im create the gui panel. And write to my notice on the edit box and click the send button. Then added "onClientRender" event on the dxElement for all player. Also gui panel is only for admin , dx element is for everyone
-
But that's an notice panel. And only admins must be special. So I can not remove this code. How do I fix it in another way?