Jump to content

bencskrisz

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by bencskrisz

  1. It should spawn me in the Las Venturas planning department but it spawns me to nowhere.. probably there is a problem with the dimension or idk.. local Exitdoor = createMarker( 385.23818969727,173.71939086914,1007.3828125, "arrow", 1.5, 150, 255, 255, 0 ) setElementInterior( Exitdoor, 3 ) function Exitd( player ) if (source == Exitdoor) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, 1367, -1279, 13 ) setTimer ( setElementInterior, 1000, 1, player, 0, 1367, -1279, 13 ) toggleControl ( player, "fire", true ) end end end addEventHandler ("onMarkerHit", getRootElement() ,Exitd ) local Doorentry = createMarker(593.58807373047,-1250.8880615234,19.250591278076, "arrow", 1.5, 255, 255, 255, 0 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer(setElementPosition, 1000, 1, player, 593.58807373047,-1250.8880615234,19.250591278076) setTimer ( setElementInterior, 1000, 1, player, 3, 593.58807373047,-1250.8880615234,19.250591278076 ) toggleControl ( player, "fire", false ) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore )
  2. Okay okay got it, wont post anything like this one more time.. Thank you for ur script but for some reason nothing happens when im in the marker and I write the command Why?? Script looks perfect tho OK it works now. The marker was too deep in the ground
  3. local marker = createMarker(2167.1208496094,-1672.4111328125,13.075506210327,"cylinder", 1.5, 139, 0, 285,77) local Blip = createBlipAttachedTo(marker,31) function myCommandHandler(thePlayer) if isElementWithinMarker(thePlayer, marker) then takePlayerMoney( thePlayer, 35000 ) outputChatBox('Gratulálok az új lakásához! A Lakás kulcsai mostantól az Öné! (IK: /086372)',player,60,238,7) end end addCommandHandler('lakasvetel1',myCommandHandler) So with this if I'm in the marker and type the command it gonna take the money from me and gonna get the output message. It obviously works. But I want a part in this script that does not allow you (with an outputchatbox text) to take the money from you when entering the command when you dont have sufficient money. Cause currently it just goes to minus, I mean my money even if I dont have sufficient money..
  4. I do remember I found a script that was similiar to this idea but I really dont know where did I find that. It'd be so cool if I could have this script again......I know this forum is not about asking scripts from people and I usually make those for myself but in this one I have no clue where to start.. Could someone help me in this one?
  5. Im working on a roleplay server and I always test the resources in local host server, however I have just noticed today that the freshly added resources are not even running on the server, only the older ones. Ive tried to start them with command but the server just cant find 'em while they are clearly there.. Currently there are maybe 20 resources running on the server.. The only thing what came to my mind was maybe there is a limitation of usable resorces for local servers..
  6. So I'd need a script what with typing a command would make a blip appear in a random position on the map (and radar) and if you reach it ,it disappears. Is it possible to make at all
  7. So basically I wanna have a marker in which you enter, a menu will appear and by pressing the arrows you can click between the different (vehicle) pictures (of what are in the library of the resource) and the name of the vehicle should appear below each picture. Is it possible to make a script like this? I really need your help guys, I already tried a lot but failed so far on this one..
  8. So basically I want it to work in this way -> The car enters the cylinder then some text gonna appear in chat like "repairing is under process" and you should wait for example 10 seconds before the starting of the function. The function and everything is below in my script. Can someone help in adding this into it? The script: spray1 = createMarker ( -2437.853515625, 1036.1303710938, 49.5, "cylinder", 5, 0, 255, 0, 50 ) function Reparar ( thePlayer ) local dinero = getPlayerMoney ( thePlayer ) local vehicle = getPedOccupiedVehicle ( thePlayer ) if ( not vehicle ) then outputChatBox( "#c8c8c8Steven: #ffffffGuruljon be a járműjével ide Uram, ha szervízre van szüksége. ", thePlayer, 255, 0, 0, true ) return end if ( dinero >= 300 ) then takePlayerMoney( thePlayer, 300 ) fixVehicle( vehicle ) outputChatBox ( "#c8c8c8Steven: #00ff00Sikeresen megjavítottam a járművét Uram!", thePlayer, 0, 255, 0, true ) else outputChatBox ( "#c8c8c8Steven: #ff1100Ne vesztegesse itt az időmet! 300$ alatt nem vállalok javítást!", thePlayer, 255, 0, 0, true ) end end addEventHandler( "onMarkerHit", spray1, Reparar ) spray2 = createMarker ( 1219.9140625,188.96229553223,18.952247619629, "cylinder", 5, 0, 255, 0, 50 )
  9. A bit off-topic (if you're still here) Can you check this for me out? -> It is the script what you solved for me, I just tried to add rotation but it does not rotate.. Can you check this too? I have no idea what is the wrong..
  10. local NPC = createPed(285,376.39947509766,-65.617164611816,1001.5078125) setElementInterior( NPC, 10 ) function NPCRotate ( ) local rotX, rotY, rotZ = getElementRotation(NPC) -- get the local players's rotation setElementRotation(NPC,0,0,rotZ+10,"default",true) -- turn the player 10 degrees clockwise end addCommandHandler ( "turn", NPCRotate ) local screenWidth, screenHeight = guiGetScreenSize() local range = 10 function NPCnametag() local x,y,z = getPedBonePosition(NPC,6) local px,py,pz = getElementPosition(localPlayer) if getDistanceBetweenPoints3D(x,y,z,px,py,pz) <= range then local sx,sy = getScreenFromWorldPosition(x,y,z) if sx then dxDrawText("Bob",sx,sy,sx,sy,tocolor ( 255, 255, 0, 255 ), 2,"sans") end end end function HandleTheRendering() addEventHandler("onClientRender",getRootElement(), NPCnametag) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
  11. One more question: why does the created ped spawns a bit far from the scripted coordinates? There wasn't any problem with the positioning with the first script what u sent me and now the nametag works perfectly but it does not spawn accurately according to the written coordinates. It spawns a few meters away. What value affected it?? Its strange Nothing nothing, I solved it!
  12. Thank you so much!! It still needs a lot of work to make it perfect but I can do that now. God bless you brother!
  13. Thank you so much! Now it appears but.. once I get close to it and then leave from the ped, the nametag wont disappear, its gonna be visible no matter how far im going away from the ped.. can you resolve this? I guess we should need a kinda maxrange or idk....
  14. local rootElement = getRootElement() local NPC = createPed(124,0,0,5) local screenWidth, screenHeight = guiGetScreenSize() function NPCnametag() local sx,sy = getScreenFromWorldPosition (getElementPosition(NPC)) if sx then dxDrawText("Bob",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 255 ), 2,"sans") end end function HandleTheRendering() addEventHandler("onClientRender",rootElement, NPCnametag) end addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
  15. Hey! My (not so original) idea is putting this /rp command into the server (local). I want it to work like this -> If you write your IC action next to /rp in chat (for example: /rp fasten the seat belt) then it gonna appear above the player in this form -> *fasten the seat belt. So basically it would repeat the action text above the player who said it (without the "/rp"). Is it possible to script it? If it is, then can someone help me, Im kindda new in scripting. If its not possible then it would be still cool if the repeated action would appear only in the chatbox. But the best and the coolest would be if it would appear above the player.. Thank you in advance!!
  16. Sorry for the way I posted..:| So when I start the resource, the fuel line appears on the screen when I'm in car but the line does not move so yeah it does not work at all.. when I get out from the vehicle I got an error message -> ERROR: Client triggered serverside event onGetFuel, but event is not added serverside. I understand what it says but I'm a bit new in scripting and I don't know what to modify or add on server side cause I added this onGetFuel but obviously not in a proper way
  17. Client side: function showPlayerFuel() hidePlayerFuel(true); fuelFrame = guiCreateStaticImage( 0.72, 0.79, 0.05, 0.20, "images/Fuel_Gage.png", true) fuelBar1 = guiCreateStaticImage( 0.742, 0.811, 0.021, 0.17, "images/Fuel_Dot.png", true) guiBringToFront ( fuelFrame ) end addEvent("FullTank", true ) addEventHandler("FullTank", resourceRoot, showPlayerFuel) addEvent("fullRefill", true) addEventHandler("fullRefill",resourceRoot, showPlayerFuel) addEvent("fuelGageShow", true) addEventHandler("fuelGageShow", resourceRoot, showPlayerFuel) function CurrentFuelIn ( currentFuel ) local sizex = currentFuel["sizex"] local sizey = currentFuel["sizey"] local posx = currentFuel["posx"] local posy = currentFuel["posy"] hidePlayerFuel(true); fuelBar1 = guiCreateStaticImage( tonumber(posx), tonumber(posy), tonumber(sizex), tonumber(sizey), "images/Fuel_Dot.png", true) fuelFrame = guiCreateStaticImage( 0.72, 0.79, 0.05, 0.20, "images/Fuel_Gage.png", true) if(posy and posy > 0.9) then if not warningdot1 then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) end if((Posy or 0) >= 0.981) then setVehicleEngineState(getPedOccupiedVehicle(localPlayer),false) else outputChatBox("-- You Are Quite Low On Fuel | Refuel at Area 69", 255, 50, 50, true) playSoundFrontEnd(4) end end end addEvent("CurrentFuel", true) addEventHandler("CurrentFuel", resourceRoot, CurrentFuelIn) function startExit ( vehicle,seat ) if seat == 0 and fuelBar1 then local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local fTbl = {} fTbl.sizex = x fTbl.sizey = y fTbl.posx = Posx fTbl.posy = Posy triggerServerEvent('onGetFuel',vehicle,fTbl) hidePlayerFuel() if(fuelTimer) then killTimer(fuelTimer) fuelTimer = false; end end end addEventHandler("onClientPlayerVehicleExit", localPlayer, startExit ) function vehEntered ( veh,seat ) if seat == 0 and isElement(fuelBar1) then local Posx, Posy = guiGetPosition ( fuelBar1, true ) if(Posy and Posy >= 0.981) then setVehicleEngineState(veh,false) end end if(isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end fuelTimer = setTimer ( decFuel1, 2000, 0) end addEventHandler("onClientPlayerVehicleEnter", localPlayer, vehEntered ) function decFuel1() local PlayerInCar = getPedOccupiedVehicle( getLocalPlayer() ) if (PlayerInCar and getVehicleController(PlayerInCar) == localPlayer and not isPedDead(localPlayer) ) then if(not fuelBar1) then showPlayerFuel(); return; end local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local NewY,NewPosY if not Posy then return end if((isElementWithinColShape(localPlayer,safeZone) or isElementWithinSafeArea(localPlayer)) and Posy > 0.812) then NewY = y + 0.009 NewPosY = Posy - 0.009 if(warningdot1) then destroyElement(warningdot1) warningdot1 = nil playSoundFrontEnd(1) end elseif(Posy < 0.981) then local velo = getActualVelocity( PlayerInCar ) local val = (velo < 5 and 0) or (velo < 100 and 0.0007) or 0.0010 -- 6 / 9 NewY = y - val NewPosY = Posy + val if(Posy and (Posy > 0.885 and Posy < 0.95) and not warningdot1) then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) playSoundFrontEnd(4) outputChatBox("Your vehicle tank is about to run out.", 255, 100, 100); end elseif (Posy >= 0.981 and getVehicleEngineState(PlayerInCar)) then setVehicleEngineState(PlayerInCar,false) callServerFunction('setVehicleEngineState',PlayerInCar,false) end if(NewY) then guiSetSize(fuelBar1, x, NewY, true) end if(NewPosY) then guiSetPosition(fuelBar1, Posx, NewPosY, true ) end elseif(fuelTimer) then hidePlayerFuel() end end function hidePlayerFuel(bDontDestroyTimer) if(fuelFrame) then destroyElement(fuelFrame) fuelFrame = nil; end if(fuelBar1) then destroyElement(fuelBar1) fuelBar1 = nil; end if(warningdot1) then destroyElement(warningdot1); warningdot1 = nil; end if(not bDontDestroyTimer and isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end end addEvent("jacked", true ) addEventHandler("jacked", resourceRoot, hidePlayerFuel ) function getActualVelocity( element ) if(element) then x,y,z = getElementVelocity(element) end return math.sqrt(x^2 + y^2 + z^2) * 161 end Server side: function startExit ( vehicle,seat ) if seat == 0 and fuelBar1 then local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local fTbl = {} fTbl.sizex = x fTbl.sizey = y fTbl.posx = Posx fTbl.posy = Posy triggerServerEvent('onGetFuel',vehicle,fTbl) hidePlayerFuel() if(fuelTimer) then killTimer(fuelTimer) fuelTimer = false; end end end function vehEntered ( veh,seat ) if seat == 0 and isElement(fuelBar1) then local Posx, Posy = guiGetPosition ( fuelBar1, true ) if(Posy and Posy >= 0.981) then setVehicleEngineState(veh,false) end end if(isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end fuelTimer = setTimer ( decFuel1, 2000, 0) end function decFuel1() local PlayerInCar = getPedOccupiedVehicle( getLocalPlayer() ) if (PlayerInCar and getVehicleController(PlayerInCar) == localPlayer and not isPedDead(localPlayer) ) then if(not fuelBar1) then showPlayerFuel(); return; end local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local NewY,NewPosY if not Posy then return end if((isElementWithinColShape(localPlayer,safeZone) or isElementWithinSafeArea(localPlayer)) and Posy > 0.812) then NewY = y + 0.009 NewPosY = Posy - 0.009 if(warningdot1) then destroyElement(warningdot1) warningdot1 = nil playSoundFrontEnd(1) end elseif(Posy < 0.981) then local velo = getActualVelocity( PlayerInCar ) local val = (velo < 5 and 0) or (velo < 100 and 0.0007) or 0.0010 -- 6 / 9 NewY = y - val NewPosY = Posy + val if(Posy and (Posy > 0.885 and Posy < 0.95) and not warningdot1) then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) playSoundFrontEnd(4) outputChatBox("Your vehicle tank is about to run out.", 255, 100, 100); end elseif (Posy >= 0.981 and getVehicleEngineState(PlayerInCar)) then setVehicleEngineState(PlayerInCar,false) callServerFunction('setVehicleEngineState',PlayerInCar,false) end if(NewY) then guiSetSize(fuelBar1, x, NewY, true) end if(NewPosY) then guiSetPosition(fuelBar1, Posx, NewPosY, true ) end elseif(fuelTimer) then hidePlayerFuel() end end function hidePlayerFuel(bDontDestroyTimer) if(fuelFrame) then destroyElement(fuelFrame) fuelFrame = nil; end if(fuelBar1) then destroyElement(fuelBar1) fuelBar1 = nil; end if(warningdot1) then destroyElement(warningdot1); warningdot1 = nil; end if(not bDontDestroyTimer and isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end end addEvent("jacked", true ) addEventHandler("jacked", resourceRoot, hidePlayerFuel ) function getActualVelocity( element ) if(element) then x,y,z = getElementVelocity(element) end return math.sqrt(x^2 + y^2 + z^2) * 161 end
  18. So I wanted to use a zm server's resources to play it on local server. After downloading the resources, I copied them to the resources library. I'm talking about appr. 60 different resources belonging to this one zm server, however I only added meta to the 'zombies' resources to see whether it is working or not. After started the local, I noticed the server does not spawn any zombies. ' ERROR: Couldn't parse meta file for resource 'zombies' [Line 9: Error reading Attributes.] ' This was the error message I got. What should I fix? Or is it possible that its problem is I only loaded this one resource (not all the 60) and it can't work individually? My own-made meta: <meta> <script src='client_anim.Lua' type='client' /> <script src='help_client.Lua' type='client' /> <script src='hide_client.Lua' type='client' /> <script src='lagreduce_client.Lua' type='client' /> <script src='Moneylogs.Lua' type='server' /> <script src='ped.ifp' type='client' /> <script src='petrol_c.Lua' type='client' /> <config src='skins.xml' type='' </config> <script src='textlib.Lua' type='server' /> <script src='textlib_anim.Lua' type='server' /> <file src='zombiewood.png' /> <file src='edf/zombiespawn.png' /> <file src='fonts/BIRTH_OF_A_HERO.ttf' /> <file src='fonts/bloody.ttf' /> <file src='fonts/esquisito.ttf' /> <file src='fonts/Quarmic.ttf' /> <file src='fonts/QuartzMS.ttf' /> <file src='fx/greyscale.fx' /> <file src='fx/rt_blend.fx' /> <file src='fx/shader_null.fx' /> <file src='fx/texreplace.fx' /> <file src='images/blips/0.png' /> <file src='images/blips/2.png' /> <file src='images/blips/6.png' /> <file src='images/blips/23.png' /> <file src='images/blips/41.png' /> <file src='images/blips/48.png' /> <file src='images/blood/blood_1.png' /> <file src='images/blood/blood_2.png' /> <file src='images/blood/blood_3.png' /> <file src='images/blood/blood_4.png' /> <file src='images/blood/blood_5.png' /> <file src='images/blood/blood_6.png' /> <file src='images/hud/0.png' /> <file src='images/hud/1.png' /> <file src='images/hud/2.png' /> <file src='images/hud/3.png' /> <file src='images/hud/4.png' /> <file src='images/hud/5.png' /> <file src='images/hud/6.png' /> <file src='images/hud/7.png' /> <file src='images/hud/8.png' /> <file src='images/hud/9.png' /> <file src='images/hud/10.png' /> <file src='images/hud/11.png' /> <file src='images/hud/12.png' /> <file src='images/hud/13.png' /> <file src='images/hud/14.png' /> <file src='images/hud/15.png' /> <file src='images/hud/16.png' /> <file src='images/hud/17.png' /> <file src='images/hud/18.png' /> <file src='images/hud/22.png' /> <file src='images/hud/23.png' /> <file src='images/hud/24.png' /> <file src='images/hud/25.png' /> <file src='images/hud/26.png' /> <file src='images/hud/27.png' /> <file src='images/hud/28.png' /> <file src='images/hud/29.png' /> <file src='images/hud/30.png' /> <file src='images/hud/31.png' /> <file src='images/hud/32.png' /> <file src='images/hud/33.png' /> <file src='images/hud/34.png' /> <file src='images/hud/35.png' /> <file src='images/hud/36.png' /> <file src='images/hud/37.png' /> <file src='images/hud/38.png' /> <file src='images/hud/39.png' /> <file src='images/hud/40.png' /> <file src='images/hud/41.png' /> <file src='images/hud/42.png' /> <file src='images/hud/43.png' /> <file src='images/hud/44.png' /> <file src='images/hud/45.png' /> <file src='images/hud/46.png' /> <file src='images/ranks/admin.png' /> <file src='images/ranks/admin1.png' /> <file src='images/ranks/admin2.png' /> <file src='images/ranks/admin3.png' /> <file src='images/ranks/headadmin.png' /> <file src='images/ranks/langmod.png' /> <file src='images/ranks/leadadmin.png' /> <file src='images/ranks/mod.png' /> <file src='images/ranks/mod1.png' /> <file src='images/ranks/mod2.png' /> <file src='images/ranks/mod3.png' /> <file src='images/ranks/mod4.png' /> <file src='images/ranks/owner.png' /> <file src='images/ranks/rank1.png' /> <file src='images/ranks/rank2.png' /> <file src='images/ranks/rank3.png' /> <file src='images/ranks/rank4.png' /> <file src='images/ranks/rank5.png' /> <file src='images/ranks/rank6.png' /> <file src='images/ranks/rank7.png' /> <file src='images/ranks/rank8.png' /> <file src='images/ranks/rank9.png' /> <file src='images/ranks/rank10.png' /> <file src='images/ranks/rank11.png' /> <file src='images/ranks/rank12.png' /> <file src='images/ranks/rank13.png' /> <file src='images/ranks/rank14.png' /> <file src='images/ranks/rank15.png' /> <file src='images/ranks/rank16.png' /> <file src='images/ranks/rank17.png' /> <file src='images/ranks/rank18.png' /> <file src='images/ranks/rank19.png' /> <file src='images/ranks/rank20.png' /> <file src='images/ranks/rank21.png' /> <file src='images/ranks/rank22.png' /> <file src='images/ranks/rank23.png' /> <file src='images/ranks/trialadmin.png' /> <file src='images/ranks/trialmod.png' /> <file src='images/ranks/vip.png' /> <file src='images/textures/radardisc.png' /> <file src='images/textures/radardisca.png' /> <file src='images/angrymode.png' /> <file src='images/blank.png' /> <file src='images/cautious.png' /> <file src='images/chromium.png' /> <file src='images/clickable.png' /> <file src='images/continue_.png' /> <file src='images/easy.png' /> <file src='images/egg.png' /> <file src='images/egg_sel.png' /> <file src='images/Fuel_Dot.png' /> <file src='images/Fuel_Gage.png' /> <file src='images/GAN.png' /> <file src='images/gtamplogo.png' /> <file src='images/hazardious.png' /> <file src='images/help.png' /> <file src='images/impossible.png' /> <file src='images/info.png' /> <file src='images/loading.png' /> <file src='images/logo.png' /> <file src='images/map.png' /> <file src='images/newsbg.png' /> <file src='images/panelbg.png' /> <file src='images/party.png' /> <file src='images/phone.png' /> <file src='images/radioactive.png' /> <file src='images/skills.png' /> <file src='images/satellite_.png' /> <file src='images/title.png' /> <file src='images/vip.png' /> <file src='images/warning_dot.png' /> <file src='images/wired.png' /> <file src='images/wrench.png' /> <file src='images/youtube.png' /> <file src='images/zmbg_.png' /> <file src='images/zombieHead.png' /> <file src='mods/a51_ext.txd' /> <file src='mods/flashlight.txd' /> <file src='mods/flashlight.dff' /> <script src='radio/radiogui.Lua' type='server' /> <config src='radio/radios.xml' type='' </config> <file src='skins/13.txd' /> <file src='skins/22.txd' /> <file src='skins/56.txd' /> <file src='skins/67.txd' /> <file src='skins/68.txd' /> <file src='skins/69.txd' /> <file src='skins/70.txd' /> <file src='skins/84.txd' /> <file src='skins/92.txd' /> <file src='skins/97.txd' /> <file src='skins/105.txd' /> <file src='skins/107.txd' /> <file src='skins/108.txd' /> <file src='skins/111.txd' /> <file src='skins/126.txd' /> <file src='skins/127.txd' /> <file src='skins/128.txd' /> <file src='skins/152.txd' /> <file src='skins/162.txd' /> <file src='skins/167.txd' /> <file src='skins/188.txd' /> <file src='skins/192.txd' /> <file src='skins/195.txd' /> <file src='skins/206.txd' /> <file src='skins/209.txd' /> <file src='skins/212.txd' /> <file src='skins/229.txd' /> <file src='skins/230.txd' /> <file src='skins/258.txd' /> <file src='skins/264.txd' /> <file src='skins/274.txd' /> <file src='skins/277.txd' /> <file src='skins/280.txd' /> <file src='skins/287.txd' /> <file src='skins/bfori.txd' /> <file src='skins/bfost.txd' /> <file src='skins/bikera.txd' /> <file src='skins/bmost.txd' /> <file src='skins/bmycon.txd' /> <file src='skins/bmyri.txd' /> <file src='skins/bmyst.txd' /> <file src='skins/cwmyhb1.txd' /> <file src='skins/cwmyhb2.txd' /> <file src='skins/dwmolc2.txd' /> <file src='skins/fam1.txd' /> <file src='skins/fam2.txd' /> <file src='skins/fam3.txd' /> <file src='skins/hfybe.txd' /> <file src='skins/hmyri.txd' /> <file src='skins/lvemt1.txd' /> <file src='skins/omyri.txd' /> <file src='skins/sbfyst.txd' /> <file src='skins/sbmyri.txd' /> <file src='skins/sofyst.txd' /> <file src='skins/somyst.txd' /> <file src='skins/swmotr4.txd' /> <file src='skins/swmyst.txd' /> <file src='skins/vhfyst.txd' /> <file src='skins/vwfyst1.txd' /> <file src='skins/wfyri.txd' /> <file src='skins/wfyro.txd' /> <file src='skins/wfyst.txd' /> <file src='skins/wmoice.txd' /> <file src='skins/wmori.txd' /> <file src='skins/wmybar.txd' /> <file src='skins/wmybe.txd' /> <file src='skins/wmybp.txd' /> <file src='skins/wmycr.txd' /> <file src='skins/wmymech.txd' /> <file src='skins/wmyst.txd' /> <file src='sounds/aced.mp3' /> <file src='sounds/beat.mp3' /> <file src='sounds/bodyExplode.ogg' /> <file src='sounds/boss_1.ogg' /> <file src='sounds/boss_2.ogg' /> <file src='sounds/boss_3.ogg' /> <file src='sounds/car_close.ogg' /> <file src='sounds/car_open.ogg' /> <file src='sounds/chopper.ogg' /> <file src='sounds/explosion1.mp3' /> <file src='sounds/explosion2.mp3' /> <file src='sounds/explosion3.mp3' /> <file src='sounds/fireworks.ogg' /> <file src='sounds/gates.ogg' /> <file src='sounds/lvlup_1.mp3' /> <file src='sounds/lvlup_2.mp3' /> <file src='sounds/mgroan1.ogg' /> <file src='sounds/mgroan2.ogg' /> <file src='sounds/mgroan3.ogg' /> <file src='sounds/mgroan4.ogg' /> <file src='sounds/mgroan5.ogg' /> <file src='sounds/mgroan6.ogg' /> <file src='sounds/mgroan7.ogg' /> <file src='sounds/mgroan8.ogg' /> <file src='sounds/mgroan9.ogg' /> <file src='sounds/mgroan10.ogg' /> <file src='sounds/phonepop.ogg' /> <file src='sounds/plasma.wav' /> <file src='sounds/pm_.wav' /> <file src='sounds/rocket.ogg' /> <file src='sounds/switch.wav' /> <file src='sounds/tick.wav' /> <file src='sounds/unjamm.mp3' /> <file src='sounds/wrenching.ogg' /> <file src='zskins/zomb1.dff' /> <file src='zskins/zomb1.txd' /> <file src='zskins/zomb2.dff' /> <file src='zskins/zomb2.txd' /> <file src='zskins/zomb3.dff' /> <file src='zskins/zomb3.txd' /> <file src='zskins/zomb4.dff' /> <file src='zskins/zomb4.txd' /> <file src='zskins/zomb5.dff' /> <file src='zskins/zomb5.txd' /> <file src='zskins/zomb6.dff' /> <file src='zskins/zomb6.txd' /> <file src='zskins/zomb7.dff' /> <file src='zskins/zomb7.txd' /> <file src='zskins/zomb8.dff' /> <file src='zskins/zomb8.txd' /> <file src='zskins/zomb9.dff' /> <file src='zskins/zomb9.txd' /> <file src='zskins/zomb10.dff' /> <file src='zskins/zomb10.txd' /> <file src='zskins/zomb11.dff' /> <file src='zskins/zomb11.txd' /> <file src='zskins/zomb12.dff' /> <file src='zskins/zomb12.txd' /> <file src='zskins/zomb13.dff' /> <file src='zskins/zomb13.txd' /> <file src='zskins/zomb14.dff' /> <file src='zskins/zomb14.txd' /> <file src='zskins/zomb15.dff' /> <file src='zskins/zomb15.txd' /> <file src='zskins/zomb16.dff' /> <file src='zskins/zomb16.txd' /> <file src='zskins/zomb17.dff' /> <file src='zskins/zomb17.txd' /> <file src='zskins/zomb18.dff' /> <file src='zskins/zomb18.txd' /> <file src='zskins/zomb19.dff' /> <file src='zskins/zomb19.txd' /> <file src='zskins/zomb20.dff' /> <file src='zskins/zomb20.txd' /> <file src='zskins/zomb21.dff' /> <file src='zskins/zomb21.txd' /> <file src='zskins/zomb22.dff' /> <file src='zskins/zomb22.txd' /> <file src='zskins/zomb23.dff' /> <file src='zskins/zomb23.txd' /> <file src='zskins/zomb24.dff' /> <file src='zskins/zomb24.txd' /> <file src='zskins/zomb25.dff' /> <file src='zskins/zomb25.txd' /> <file src='zskins/zomb26.dff' /> <file src='zskins/zomb26.txd' /> <file src='zskins/zomb27.dff' /> <file src='zskins/zomb27.txd' /> <file src='zskins/zomb28.dff' /> <file src='zskins/zomb28.txd' /> <file src='zskins/zomb29.dff' /> <file src='zskins/zomb29.txd' /> <export function="createZombie" type="server"/> <export function="isPedZombie" type="server"/> </meta>
  19. Thank you SOO much Feche!! Now it finally works! God bless you brother!
  20. function bot1() bot1 = exports.slothbot:spawnBot (4845.0258789063, -1713.5711669922, 59.668750762939, 0, 108, 0, 0, teamLV, 31, "guarding", true ) end addEventHandler ( "onResourceStart", getResourceRootElement(), bot1 ) addEventHandler( "onBotWasted", getRootElement( ), function() setTimer( spawnBot, 5000, 1, source , 4845.0258789063, -1713.5711669922, 59.668750762939, 0, 108, 0, 0, teamLV, 31, "guarding", true ) end )
  21. Yes, I saw the wiki and it'd be awesome if I could make it real.. So I just copied it and replaced "float x float y float z" with my custom location but the server did not even find the resource itself. I had meta.xml next to it but nothing. I want as many guarding enemy slothbots as I want. Slothbot is also running but nothing.. please help! element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = "hunting", element theModesubject = nil ] )
×
×
  • Create New...