-
Posts
47 -
Joined
-
Last visited
Everything posted by DiosSasuke
-
I also need you to help me so that the object appears in front of me, and tried but the object keeps appearing where I am and I want it in front of me objs = {} function objE(player) local xb, yb, zb = getElementPosition(player) local origX, origY, origZ = getElementPosition (player) local rx, ry, rz = getElementRotation ( thePlayer ) local matrixs = (Matrix.create( xb, yb, zb-100, rx, ry, rz,origX,origY,origZ)) local forward = ( Matrix.getForward ( matrixs ) * 4) local positions = (Matrix.getPosition( matrixs ) + forward) objs[player] = createObject(689, positions) local newZ = origZ -1 moveObject( objs[player], 6000,origX, origY,newZ) end addCommandHandler("god",objE)
-
Help in the console I get error: move \ server.lua: 14: attemp to call global'moveobject' <a table value> help please as I do so that the object leaves the earth only the object appears and does not move objs = {} function objE(player) local xb,yb,zb = getElementPosition(player) local rxb,ryb,rzb = getElementRotation(player) local origX, origY, origZ = getElementPosition (player) local matrixs = (Matrix.create(xb,yb,zb, rxb,ryb,rzb, origX,origY,origZ)) local forward = (Matrix.getForward(matrixs) * 15) local positions = (Matrix.getPosition(matrixs) + forward) objs[player] = createObject(689,xb+15,yb+15,zb-10, positions) local newZ = origZ +20 moveObject( object, 6000,origX, origY,newZ) end addCommandHandler("god",objE)
-
Could you give me an example please?
-
thanks, that I must use so when putting the command appear several ped and not one?
-
Por favor me podrias dar un ejemplo? es que soy nuevo en esto
-
Necesito ayuda ¿Cómo hago que mi ped ataque a mis enemigos y no a mí y cómo hago para que desaparesca cada cierto tiempo? Por favor ayudenme isobu = createTeam("isobu",255,0,0) function isobu(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(thePed, "ped", "block") local isob = exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu, 37, "hunting", true ) end addCommandHandler("kuchiyose-isobu3", isobu)
-
Necesito ayuda ¿Cómo hago que mi ped ataque a mis enemigos y no a mí y cómo hago para que desaparesca cada cierto tiempo? Por favor ayudenme isobu = createTeam("isobu",255,0,0) function isobu(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(thePed, "ped", "block") local isob = exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu, 37, "hunting", true ) end addCommandHandler("kuchiyose-isobu3", isobu)
-
Necesito ayuda¿Cómo hago que mi ped ataque a mis enemigos y no a mí y cómo hago para que desaparesca cada cierto tiempo? Por favor ayudenme isobu = createTeam("isobu",255,0,0) function isobu(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(thePed, "ped", "block") local isob = exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu, 37, "hunting", true ) end addCommandHandler("kuchiyose-isobu3", isobu)
-
I need help How do I make my ped attack my enemies and not me and how do I disappear from time to time? isobu = createTeam("isobu",255,0,0) function isobu(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(thePed, "ped", "block") local isob = exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu, 37, "hunting", true ) end addCommandHandler("kuchiyose-isobu3", isobu)
-
thanks can I add you on facebook so you can help me in other things?
-
ok what I want is that it appears a ped next to me with the weapon that I want in this case the bazooka, when I enter the pc I will see if that serves me. Another question as I do this I want to do that and as long as it has to be immortal and that that ped or object disappears and immortality also in a few seconds https://www.youtube.com/watch?v=QMQd5UnoLAo
-
Could you give me an example? is that I'm new to this
-
sorry I did not understand
-
Thanks, but how do I do it so that it does not take away my life? and also how do I create an object? but not that the object disappears
-
Hi, can someone tell me what I did wrong with this script? I'm new to this? In the console I see server.lua: 2: Bad argument @ `getElementPosition` [Expected element at argument 1, got nil] and I also see server.lua: 3: Bad argument @ `createexplosion` [Expected vector3 at argument 1, got boolean] here I leave the lua function explosionOnSpawn ( ) local pX, pY, pZ = getElementPosition(source) createExplosion ( pX, pY, pZ, 6, source ) end addEventHandler ( "onPlayerSpawn", getRootElement(), explosionOnSpawn ) addCommandHandler ( "explosion", explosionOnSpawn )
-
hi I need help I get this error sv.lua:4: attempt to call global `givePedWeapon` <a nil value> here I leave the lúa function cmdArmedPed( localPlayer ) local x, y, z = getElementPosition(localPlayer) local thePed = createPed(300, 1568, 1832, 10) givePedWeapon( thePed, 36, 5000, true) setControlState(thePed, "fire", true) end addCommandHandler("ped", cmdArmedPed)
-
Hola, alguien me podria decir que hice malo en este script soy nuevo en esto ? En la consola me aparece server.lua:2: Bad argument @ `getElementPosition` [Expected element at argument 1, got nil] y Tambien me aparece server.lua:3: Bad argument @ `createexplosion` [Expected vector3 at argument 1, got boolean] function explosionOnSpawn ( ) local pX, pY, pZ = getElementPosition(source) createExplosion ( pX, pY, pZ, 6, source ) end addEventHandler ( "onPlayerSpawn", getRootElement(), explosionOnSpawn ) addCommandHandler ( "sharingan", explosionOnSpawn )
-
Hola, alguien me podria decir que hice malo en este script soy nuevo en esto ? En la consola me aparece server.lua:2: Bad argument @ `getElementPosition` [Expected element at argument 1, got nil] y Tambien me aparece server.lua:3: Bad argument @ `createexplosion` [Expected vector3 at argument 1, got boolean] function explosionOnSpawn ( ) local pX, pY, pZ = getElementPosition(source) createExplosion ( pX, pY, pZ, 6, source ) end addEventHandler ( "onPlayerSpawn", getRootElement(), explosionOnSpawn ) addCommandHandler ( "sharingan", explosionOnSpawn )