
kevincouto6
Members-
Posts
235 -
Joined
-
Last visited
Everything posted by kevincouto6
-
Thanks, but it's not working yet, could anyone help me?
-
GUIEditor = { gridlist = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() mission = guiCreateWindow(596, 264, 204, 247, "Zombie Mission", false) guiWindowSetSizable(mission, true) GUIEditor.button[1] = guiCreateButton(10, 22, 184, 15, "\"MISSIONS\"", false, mission) GUIEditor.button[2] = guiCreateButton(-1, 154, 31, 33, "", false, GUIEditor.button[1]) GUIEditor.button[3] = guiCreateButton(9, 214, 92, 18, "TAKE", false, mission) GUIEditor.button[4] = guiCreateButton(106, 214, 88, 18, "EXIT", false, mission) GUIEditor.gridlist[1] = guiCreateGridList(230, 206, 0, 15, false, mission) GUIEditor.gridlist[2] = guiCreateGridList(10, 39, 184, 168, false, mission) guiGridListAddColumn(GUIEditor.gridlist[2], "Mission", 0.9) for i = 1, 9 do guiGridListAddRow(GUIEditor.gridlist[2]) end guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Kill 1 boss RED", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Kill 1 boss yellow", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "Kill 2 boss RED", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Kill 2 boss yellow", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Kill 3 boss RED", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 5, 1, "Kill 3 boss yellow", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 6, 1, "Kill 300 zombies", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 7, 1, "Kill 600 zombies", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 8, 1, "Kill 900 zombies", false, false) end ) addEventHandler("onClientRender", root, guiSetVisible(mission,false) bindKey ("U","down",function() guiSetVisible(mission), not guiSetVisible(mission)) showCurson(guiGetVisible(mission[1])) end ) Could someone help me is having some errors ! please and "thank you"
-
Voçe poderia fazer para mim ?porfavor eu sou um lixo em scripts
-
--UNTESTED! zombiesKilled = 0 function ZedMissionWin () zombiesKilled = 0 outputChatBox("Good job, mission completed!") removeEventHandler("onClientPedWasted",root,ZedMissionCheckKill) end function ZedMissionCheckKill (killer,weapon) local zed = getElementData(source,"zombie") if zed == true and killer == localPlayer then zombiesKilled = zombiesKilled+1 outputDebugString("A zed was killed, "..(300-zombiesKilled).." zeds left.") end if zombiesKilled >= 300 then ZedMissionWin() end end function startZedMission() addEventHandler("onClientPedWasted",root,ZedMissionCheckKill) end addCommandHandler("startzedmission", startZedMission) Alguem poderia me ajudar não estou conseguindo ativar o givePlayerMoney e give playerXP " tem como adicionar ID nos peds para que seja possivel completar missão apenas no ID corretos" ? Se alguem puder me ajudar eu ficaria muitoo feliz, Porfavor e Muito obrigado
-
I'm in doubt that something is going wrong when I try to just complete the mission in 4 zombies, and money and Xp are not working anyone could help me? --UNTESTED! zombiesKilled = 15 function ZedMissionWin () zombiesKilled = 15 outputChatBox("Good job, mission completed!") givePlayerMoney ( 100000 ) givePlayerXp ( 1500 ) removeEventHandler("onClientPedWasted",root,ZedMissionCheckKill) end function onlyPedforMisson () local getValidPedModels = { ( 22 ) ( 34 ) ( 48 ) ( 45 ) } end function = getMoneyAndXpAfhterComplet givePlayerMoney ( 100000 ) function ZedMissionCheckKill (killer,weapon) local zed = getElementData(source,"zombie") if zed == true and killer == localPlayer then zombiesKilled = zombiesKilled+1 outputDebugString("A zed was killed, "..(300-zombiesKilled).." zeds left.") end if zombiesKilled >= 300 then ZedMissionWin() end end function startZedMission() addEventHandler("onClientPedWasted",root,ZedMissionCheckKill,onlyPedforMisson) end addCommandHandler("startzedmission", startZedMission)
-
Hello, I can not do anything I'm not understanding things, I think there's another way you can help me, is there any video or tutorial explaining this?
-
Could you help me get started with no idea and my scripting skills are bad please, help me
-
Example I want to create a mission where you must kill 300 ped "zombies" for when you complete receive rewards and money
-
Oops, maybe you should have got it wrong, wanted to add example missions kills 300 peds
-
Hello, I was thinking about creating a mission, Example killing 300 zombies could someone help me with this I have some doubts about how to eat
-
sorry the problem is I can not add a backpack in the parachute's place
-
Can anybody help me <meta> <info type="misc" name=" skin " author="Mane321" description=":)" version="1" /> <file src="data/backspace.txd" /> <file src="data/backspace.dff" /> <script type="server" src="replace.lua" /> </meta> txd = engineLoadTXD("data/backspace.txd") engineImportTXD(txd,46 ) dff = engineLoadDFF("data/backspace.dff",46) engineReplaceModel(ddf,46 )
-
Can anybody help me <meta> <info type="misc" name=" skin " author="Mane321" description=":)" version="1" /> <file src="data/backspace.txd" /> <file src="data/backspace.dff" /> <script type="server" src="replace.lua" /> </meta> txd = engineLoadTXD("data/backspace.txd") engineImportTXD(txd,46 ) dff = engineLoadDFF("data/backspace.dff",46) engineReplaceModel(ddf,46 )
-
Could anyone help me, use Bind key K to open and Close the Window addEventHandler("onClientResourceStart", resourceRoot,function() weaponWindow = guiCreateWindow(1621, 398, 256, 382, "weapon") guiWindowSetSizable(weaponWindow, false) weaponGrid = guiCreateGridList(16, 30, 226, 337,weaponWindow) guiGridListAddColumn(weaponGrid, "Inventory", 0.9) guiSetVisible (weaponWindow, false ) guiSetVisible (weaponGrid, false ) bindKey ( "k","down" , showGUI) toggleControl ( "next_weapon", false) toggleControl ( "previous_weapon", false) guiGridListSetSortingEnabled ( weaponGrid, false ) end ) addEventHandler("onClientResourceStop", resourceRoot,function() toggleControl ( "next_weapon", true) toggleControl ( "previous_weapon", true) end ) function showGUI() if guiGetVisible ( weaponWindow )==false then guiSetVisible (weaponWindow, true ) guiSetVisible (weaponGrid, true ) showCursor(true) else guiSetVisible (weaponWindow, false ) guiSetVisible (weaponGrid, false ) showCursor(false) guiGridListClear ( weaponGrid ) end end function showGUI2() if guiGetVisible ( weaponWindow )==false then guiSetVisible (weaponWindow, false ) guiSetVisible (weaponGrid, false ) showCursor(false) else guiSetVisible (weaponWindow, false ) guiSetVisible (weaponGrid, false ) showCursor(false) guiGridListClear ( weaponGrid ) end end function refreshWeapons() x = 0 for i=0,11,1 do if (getWeaponNameFromID(getPedWeapon ( localPlayer, i))) ~= "Fist" or i==0 then --outputChatBox(getWeaponNameFromID(getPedWeapon ( localPlayer, i))) guiGridListAddRow(weaponGrid) guiGridListSetItemText(weaponGrid, x, 1, getWeaponNameFromID(getPedWeapon ( localPlayer, i)), false, false) x=x+1 end end if (guiGridListGetSelectedItem ( weaponGrid ) ) ~= -1 then setPedWeaponSlot ( localPlayer, getSlotFromWeapon(getWeaponIDFromName(guiGridListGetItemText ( weaponGrid, guiGridListGetSelectedItem ( weaponGrid ) ))) ) end end addEventHandler("onClientRender", root,refreshWeapons)
-
-- SERVER SIDE SCRIPT!! local vehspawns = { {461,-2822,194.931640625,5,0,0,90, true}, {461,-2822,191.3056640625,5,0,0,90, true}, {461,-2822,188.06640625,5,0,0,90, true}, {461,-2822,184.8271484375,5,0,0,90, true}, {461,-2822,181.744140625,5,0,0,90, true}, {461,-2822,178.7294921875,5,0,0,90, true}, {461,-2822,175.71484375,5,0,0,90, true}, {461,-2822,172.408203125,5,0,0,90, true}, {468,-2822,142.33984375,5,0,0,90, true}, {468,-2822,138.8955078125,5,0,0,90, true}, {468,-2822,135.29296875,5,0,0,90, true}, {468,-2822,131.9853515625,5,0,0,90, true}, {468,-2822,128.5322265625,5,0,0,90, true}, {468,-2822,124.7802734375,5,0,0,90, true}, {468,-2822,121.3359375,5,0,0,90, true}, {554,-2945.4697265625,191,5,0,0,180, true}, {587,-2951.521484375,191,5,0,0,180, true}, {444,-2957.5947265625,191,5,0,0,180, true}, {603,-2963.5185546875,191,5,0,0,180, true}, {541,-2969.494140625,191,5,0,0,180, true}, {402,-2975.3251953125,191,5,0,0,180, true}, {554,-2945.376953125,123,5,0,0,0, true}, {587,-2951.4091796875,123,5,0,0,0, true}, {444,-2957.3935546875,123,5,0,0,0, true}, {603,-2963.478515625,123,5,0,0,0, true}, {541,-2969.48046875,123,5,0,0,0, true}, {402,-2975.373046875,123,5,0,0,0, true}, {554,-3021.6376953125,189,5,0,0,180, true}, {587,-3027.93359375,189,5,0,0,180, true}, {444,-3033.7587890625,189,5,0,0,180, true}, {603,-3039.7314453125,189,5,0,0,180, true}, {541,-3045.83203125,189,5,0,0,180, true}, {402,-3051.7373046875,189,5,0,0,180, true}, {554,-3021.92578125,123,5,0,0,0, true}, {587,-3028.013671875,123,5,0,0,0, true}, {444,-3033.9326171875,123,5,0,0,0, true}, {603,-3039.998046875,123,5,0,0,0, true}, {541,-3045.97265625,123,5,0,0,0, true}, {402,-3051.9267578125,123,5,0,0,0, true}, {532,-3505.3837890625,157.5322265625,6,0,0,270, true}, {403,-3151.68359375,294,6,0,0,0, true}, {403,-3161.720703125,294,6,0,0,0, true}, {403,-3171.556640625,294,6,0,0,0, true}, {403,-3180.8671875,294,6,0,0,0, true}, {584,-3151.6833496094,283.69784545898,6,0,0,0, true}, {450,-3161.7204589844,284.39559936523,6,0,0,0, true}, {435,-3171.6240234375,284.8740234375,6,0,0,0, true}, {584,-3180.9326171875,285.2646484375,6,0,0,0, true}, {506,-3345.14453125,370,5,0,0,180, true}, {506,-3351,370,5,0,0,180, true}, {506,-3357.1416015625,370,5,0,0,180, true}, {506,-3362.9931640625,370,5,0,0,180, true}, {506,-3368.9833984375,370,5,0,0,180, true}, {506,-3375.1171875,370,5,0,0,180, true}, {446,-3185.3852539063,224.28950500488,0.29879999160767,0,0,269.09796142578, true}, {487,-3267.0419921875,421,8,0,0,0, true}, {487,-3322.505859375,421,8,0,0,0, true}, {487,-3378.42578125,421,8,0,0,0, true}, {487,-3378.1513671875,536,8,0,0,180, true}, {487,-3323.0703125,536,8,0,0,180, true}, {487,-3266.751953125,536,8,0,0,180, true}, {522,-3439,480.3720703125,5,0,0,86.390991210938, true}, {522,-3439,479.0947265625,5,0,0,86.390991210938, true}, {522,-3439,477.78125,5,0,0,86.390991210938, true}, {522,-3439,476.3740234375,5,0,0,86.390991210938, true}, {522,-3439,475.080078125,5,0,0,86.390991210938, true}, {522,-3223,496.34765625,5,0,0,90, true}, {522,-3223,493.7001953125,5,0,0,90, true}, {522,-3223,490.6923828125,5,0,0,90, true}, {522,-3223,488.1201171875,5,0,0,90, true}, {522,-3223,485.435546875,5,0,0,90, true}, {522,-3223,468.8955078125,5,0,0,90, true}, {522,-3223,466.3359375,5,0,0,90, true}, {522,-3223,463.419921875,5,0,0,90, true}, {522,-3223,460.76953125,5,0,0,90, true}, {522,-3223,457.896484375,5,0,0,90, true}, {522,-3202.7587890625,484.42578125,5.5,0,0,0, true}, {522,-3201.8623046875,483.509765625,5.5,0,0,0, true}, {411,-3430.8603515625,462.400390625,5,0,0,270, true}, {411,-3430.9736328125,474.55078125,5,0,0,270, true}, {411,-3430.9404296875,486.7412109375,5,0,0,270, true}, {451,-3430.9296875,493.7060546875,5,0,0,270, true}, {451,-3430.9111328125,481.09375,5,0,0,270, true}, {451,-3430.904296875,468.95703125,5,0,0,270, true}, {411,-3198.498046875,487.21484375,5.5,0,0,318.92761230469, true}, {411,-3203.00390625,491.2578125,5.5,0,0,318.92761230469, true}, {476,-3092.05859375,630.9873046875,6,0,0,70.29052734375, true}, {476,-3109.822265625,606.162109375,6,0,0,37.908325195313, true}, {476,-3140.0625,603.0595703125,6,0,0,339.46105957031, true}, {432,-3074.5009765625,673.88854980469,7,353.681640625,0,90, true}, {432,-3074.5007226563,664.45306396484,7,353.681640625,0,90, true}, {432,-3074.5098339844,655.83953857422,7,353.681640625,0,90, true}, {425,-3199.451171875,633.5693359375,8.5,0,0,0, true}, {425,-3447.9208984375,633.7021484375,8.5,0,0,0, true}, {563,-3261.5546875,634.62109375,8.5,0,0,0, true}, {563,-3386.0087890625,632.8212890625,8.5,0,0,0, true}, {548,-3323.916015625,633.462890625,9.5,0,0,0, true}, } function createVehToSpawn(vehiclemodelid, posx,posy,posz, rotx,roty,rotz, freezeonspawn) local veh = createVehicle(vehiclemodelid, posx,posy,posz, rotx,roty,rotz) setVehicleColor(veh, 253, 140, 29, 253, 140, 29, 253, 140, 29 ,253, 140, 29) setElementData(veh, "tablerow", {vehiclemodelid, posx,posy,posz, rotx,roty,rotz, freezeonspawn}) setElementData(veh,"SpecialVeh",true) addEventHandler("onVehicleExplode", veh, respawnVehicle) if freezeonspawn then setElementFrozen(veh, true) addEventHandler("onVehicleEnter", veh, function() setElementFrozen(source, false) end) addEventHandler("onVehicleExit", veh, function() setElementFrozen(source, true) end) end end function respawnVehicle() local v = getElementData(source, "tablerow") if not v then return end if v[8] then removeEventHandler("onVehicleEnter", source, function() setElementFrozen(source, false) end) removeEventHandler("onVehicleExit", source, function() setElementFrozen(source, true) end) end destroyElement(source) createVehToSpawn(v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8]) -- create back the destroyed vehicle end for i, v in ipairs(vehspawns) do createVehToSpawn(v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8]) -- spawn vehicles on script start end addCommandHandler("ExpVehicles", function() for i,v in pairs(getElementsByType("vehicle")) do if getElementData(veh,"SpecialVeh") then -- check the data --destroyElement(v) -- if you want do destroy all cars blowVehicle(v) -- if you want to blow up all cars end end end ) Is an error occurring, could it help me?
-
Hello I wanted to ask for help to add a command to blow up all the cars, could anyone help me?
-
-- SERVER SIDE SCRIPT!! local vehspawns = { {461,-2822,194.931640625,5,0,0,90, true}, {461,-2822,191.3056640625,5,0,0,90, true}, {461,-2822,188.06640625,5,0,0,90, true}, {461,-2822,184.8271484375,5,0,0,90, true}, {461,-2822,181.744140625,5,0,0,90, true}, {461,-2822,178.7294921875,5,0,0,90, true}, {461,-2822,175.71484375,5,0,0,90, true}, {461,-2822,172.408203125,5,0,0,90, true}, {468,-2822,142.33984375,5,0,0,90, true}, {468,-2822,138.8955078125,5,0,0,90, true}, {468,-2822,135.29296875,5,0,0,90, true}, {468,-2822,131.9853515625,5,0,0,90, true}, {468,-2822,128.5322265625,5,0,0,90, true}, {468,-2822,124.7802734375,5,0,0,90, true}, {468,-2822,121.3359375,5,0,0,90, true}, {554,-2945.4697265625,191,5,0,0,180, true}, {587,-2951.521484375,191,5,0,0,180, true}, {444,-2957.5947265625,191,5,0,0,180, true}, {603,-2963.5185546875,191,5,0,0,180, true}, {541,-2969.494140625,191,5,0,0,180, true}, {402,-2975.3251953125,191,5,0,0,180, true}, {554,-2945.376953125,123,5,0,0,0, true}, {587,-2951.4091796875,123,5,0,0,0, true}, {444,-2957.3935546875,123,5,0,0,0, true}, {603,-2963.478515625,123,5,0,0,0, true}, {541,-2969.48046875,123,5,0,0,0, true}, {402,-2975.373046875,123,5,0,0,0, true}, {554,-3021.6376953125,189,5,0,0,180, true}, {587,-3027.93359375,189,5,0,0,180, true}, {444,-3033.7587890625,189,5,0,0,180, true}, {603,-3039.7314453125,189,5,0,0,180, true}, {541,-3045.83203125,189,5,0,0,180, true}, {402,-3051.7373046875,189,5,0,0,180, true}, {554,-3021.92578125,123,5,0,0,0, true}, {587,-3028.013671875,123,5,0,0,0, true}, {444,-3033.9326171875,123,5,0,0,0, true}, {603,-3039.998046875,123,5,0,0,0, true}, {541,-3045.97265625,123,5,0,0,0, true}, {402,-3051.9267578125,123,5,0,0,0, true}, {532,-3505.3837890625,157.5322265625,6,0,0,270, true}, {403,-3151.68359375,294,6,0,0,0, true}, {403,-3161.720703125,294,6,0,0,0, true}, {403,-3171.556640625,294,6,0,0,0, true}, {403,-3180.8671875,294,6,0,0,0, true}, {584,-3151.6833496094,283.69784545898,6,0,0,0, true}, {450,-3161.7204589844,284.39559936523,6,0,0,0, true}, {435,-3171.6240234375,284.8740234375,6,0,0,0, true}, {584,-3180.9326171875,285.2646484375,6,0,0,0, true}, {506,-3345.14453125,370,5,0,0,180, true}, {506,-3351,370,5,0,0,180, true}, {506,-3357.1416015625,370,5,0,0,180, true}, {506,-3362.9931640625,370,5,0,0,180, true}, {506,-3368.9833984375,370,5,0,0,180, true}, {506,-3375.1171875,370,5,0,0,180, true}, {446,-3185.3852539063,224.28950500488,0.29879999160767,0,0,269.09796142578, true}, {487,-3267.0419921875,421,8,0,0,0, true}, {487,-3322.505859375,421,8,0,0,0, true}, {487,-3378.42578125,421,8,0,0,0, true}, {487,-3378.1513671875,536,8,0,0,180, true}, {487,-3323.0703125,536,8,0,0,180, true}, {487,-3266.751953125,536,8,0,0,180, true}, {522,-3439,480.3720703125,5,0,0,86.390991210938, true}, {522,-3439,479.0947265625,5,0,0,86.390991210938, true}, {522,-3439,477.78125,5,0,0,86.390991210938, true}, {522,-3439,476.3740234375,5,0,0,86.390991210938, true}, {522,-3439,475.080078125,5,0,0,86.390991210938, true}, {522,-3223,496.34765625,5,0,0,90, true}, {522,-3223,493.7001953125,5,0,0,90, true}, {522,-3223,490.6923828125,5,0,0,90, true}, {522,-3223,488.1201171875,5,0,0,90, true}, {522,-3223,485.435546875,5,0,0,90, true}, {522,-3223,468.8955078125,5,0,0,90, true}, {522,-3223,466.3359375,5,0,0,90, true}, {522,-3223,463.419921875,5,0,0,90, true}, {522,-3223,460.76953125,5,0,0,90, true}, {522,-3223,457.896484375,5,0,0,90, true}, {522,-3202.7587890625,484.42578125,5.5,0,0,0, true}, {522,-3201.8623046875,483.509765625,5.5,0,0,0, true}, {411,-3430.8603515625,462.400390625,5,0,0,270, true}, {411,-3430.9736328125,474.55078125,5,0,0,270, true}, {411,-3430.9404296875,486.7412109375,5,0,0,270, true}, {451,-3430.9296875,493.7060546875,5,0,0,270, true}, {451,-3430.9111328125,481.09375,5,0,0,270, true}, {451,-3430.904296875,468.95703125,5,0,0,270, true}, {411,-3198.498046875,487.21484375,5.5,0,0,318.92761230469, true}, {411,-3203.00390625,491.2578125,5.5,0,0,318.92761230469, true}, {476,-3092.05859375,630.9873046875,6,0,0,70.29052734375, true}, {476,-3109.822265625,606.162109375,6,0,0,37.908325195313, true}, {476,-3140.0625,603.0595703125,6,0,0,339.46105957031, true}, {432,-3074.5009765625,673.88854980469,7,353.681640625,0,90, true}, {432,-3074.5007226563,664.45306396484,7,353.681640625,0,90, true}, {432,-3074.5098339844,655.83953857422,7,353.681640625,0,90, true}, {425,-3199.451171875,633.5693359375,8.5,0,0,0, true}, {425,-3447.9208984375,633.7021484375,8.5,0,0,0, true}, {563,-3261.5546875,634.62109375,8.5,0,0,0, true}, {563,-3386.0087890625,632.8212890625,8.5,0,0,0, true}, {548,-3323.916015625,633.462890625,9.5,0,0,0, true}, } function createVehToSpawn(vehiclemodelid, posx,posy,posz, rotx,roty,rotz, freezeonspawn) local veh = createVehicle(vehiclemodelid, posx,posy,posz, rotx,roty,rotz) setVehicleColor(veh, 253, 140, 29, 253, 140, 29, 253, 140, 29 ,253, 140, 29) setElementData(veh, "tablerow", {vehiclemodelid, posx,posy,posz, rotx,roty,rotz, freezeonspawn}) addEventHandler("onVehicleExplode", veh, respawnVehicle) if freezeonspawn then setElementFrozen(veh, true) addEventHandler("onVehicleEnter", veh, function() setElementFrozen(source, false) end) addEventHandler("onVehicleExit", veh, function() setElementFrozen(source, true) end) end end function respawnVehicle() local v = getElementData(source, "tablerow") if not v then return end if v[8] then removeEventHandler("onVehicleEnter", source, function() setElementFrozen(source, false) end) removeEventHandler("onVehicleExit", source, function() setElementFrozen(source, true) end) end destroyElement(source) createVehToSpawn(v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8]) -- create back the destroyed vehicle end for i, v in ipairs(vehspawns) do createVehToSpawn(v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8]) -- spawn vehicles on script start end How to add another command of vehicle respawn? if possible wanted to add /respawnveh, but unchanged when he sees them destroyed?
-
in what line should I add setVehicleColor
-
How do I make the color I want to vehicles?
-
could you send me a script for this?
-
I created a map in the ocean, but they are falling in the ocean before loading the map, so I must freeze the vehicles.
-
I wanted a script to create cars and freeze them
-
Hello I wanted to ask for help, I want to add come on my map but those of the publishers can not respanw after destroyed someone could help me?
-
Hello I added a few cars in the base, they are falling in the water, there is a way to stop them from falling ?