Jump to content

boro

Members
  • Content Count

    231
  • Joined

  • Last visited

Community Reputation

0 Neutral

About boro

  • Rank
    Trick
  1. Hi all, i want use playSound3D function with youtube link is it possible ? And if yes, how ? Thank all for ideas..
  2. boro

    onzombiesapwn help

    Idk what you mean, my previous script work, but why it work for all zombies and not only for one spawned zombie this is what i dont know .. and i try it with ped, zombie, source and still dont work
  3. boro

    onzombiesapwn help

    now it dont work and chatbox dont work too and i try this way but without loop this dont work
  4. Hi i make noob zombie script this script is for set zombie health to 50 if is zombie skin 281 It work good, but if is zombie damaged and is spawned next zombie then old damaged zombie have set 50 health back why ? Please Help addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, function () for _, v in ipairs ( getElementsByType ( "ped" ) ) do if ( getElementModel ( v ) == 281 ) then setElementHealth ( v, 50 ) outputChatBox("noob zombie spawned") end end end )
  5. boro

    give weapon

    ty for reply but this dont work no errors and debug is clear full script function zombiedamaged (killer, weapon, bodypart ) if ( killer and killer == getLocalPlayer() ) then triggerServerEvent("onGreetingtwo",getLocalPlayer(),getLocalPlayer()) end end addEventHandler ( "onClientPedWasted", getRootElement ( ), zombiedamaged ) addEvent("onGreetingtwo",true) addEventHandler("onGreetingtwo",resourceRoot, function(p) giveWeapon(p,31,200) end)
  6. boro

    give weapon

    Hi all is any way to give player weapon from client side i try it with triger triggerServerEvent ( "onGreeting", getLocalPlayer() ) function giveweapon ( ) giveWeapon ( source, 31, 200 ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", resourceRoot, giveweapon ) but it dont work any ideas ?
  7. oh resolved i rename resource name and now it work good But Ty all.
  8. It show this Value: [userdata: 000000A9] And yes i have set extrahealth to 10000 and work it good
  9. i have v defined check it for _, v in ipairs ( getElementsByType ( "ped" ) ) do if ( getElementModel ( v ) == 281 ) then local x, y, z = getElementPosition( v ) if isElementOnScreen( v ) then local X, Y = getScreenFromWorldPosition( x, y, z ) if X then dxDrawRectangle( X - 30, Y - 20, 60, 10, tocolor( 0, 0, 0, 120) ) local health = exports["extra_health"]:getElementExtraHealth(v) local lineLength = 56 * ( health / 100 ) dxDrawRectangle( X - 28, Y - 18, lineLength, 6, tocolor( 255, 0, 0, 100 ) )
  10. Hi all i have problem vith my script i want show progressbar for ped i have set extra healt it work good but if i want check ped health with exported function getElementExtraHealth then it show this warning why ? ERROR:healthbar/1.lua:12: attempt to perform arithmetic on local "health" (a nill value) idk why it show nill value because i have set extrahealth for ped and it work please help this is code dxDrawRectangle( X - 30, Y - 20, 60, 10, tocolor( 0, 0, 0, 120) ) local health = exports["extra_health"]:getElementExtraHealth(v) local lineLength =
  11. this delete moneys for all players on server function deletemoney() for _, player in ipairs(players) do local account = getPlayerAccount(player) local money = getPlayerMoney (player) setAccountData(account, "Money", 0) end end addCommandHandler("deletemoney", deletemoney)
  12. boro

    Question

    try this addEventHandler ( "onClientPlayerWasted", root, function () local x,y,z = getElementPosition( source ) local camerax, cameray, cameraz = getCameraMatrix() setCameraMatrix ( x, y, z, camerax, cameray, cameraz ) end )
  13. boro

    Mutiple skins

    Oh you have txd,dff skin ok try this and set your skin names to bobcat1.txt, bobcat1.dff and bobcat2.txt,bobcat2.dff function randomwehicle ( ) if bobcatone then txd = engineLoadTXD ( "bobcat1.txd" ) engineImportTXD ( txd, 422 ) -- here set your wehicleid dff = engineLoadDFF("bobcat1.dff", 422) engineReplaceModel(dff, 422) bobcatone = false local newwehicle = createVehicle ( wehicleID, posX, posY, posZ ) -- here set your vehicle id and spawn position warpPedIntoVehicle ( source, newwehicle ) else txd = engineLoadTXD ( "bobcat2.txd" ) engineImportTXD ( txd, 422 ) -- here set your
  14. boro

    Mutiple skins

    try this skintable = { "skinname.txd", "skinname.txd", "skinname.txd", "skinname.txd" } -- here set your skin names function randomwehicle ( ) txd = engineLoadTXD ( "skintable[math.random (#skintable)]" ) engineImportTXD ( txd, vehicleID ) -- here set your wehicleid local newwehicle = createVehicle ( wehicleID, posX, posY, posZ ) -- here set your vehicle id and spawn position warpPedIntoVehicle ( source, newwehicle ) end addEventHandler ( "onPlayerSpawn", getRootElement(), randomwehicle )
×
×
  • Create New...