Jump to content

¿Esto se puede hacer?


Ryuto

Recommended Posts

https://community.multitheftauto.com/in ... ls&id=9311

local Shinra = function(p,k,ks) 
local x,y,z = getElementPosition(p) 
setPedAnimation(p,"GHANDS", "gsign2", -1, false, true, false, false) 
--triggerClientEvent("CreateNinjaSound",root,p,"Shinra.mp3") play sound 
  
for k,v in ipairs(getElementsByType("vehicle")) do 
local px11,py11,pz11 = getElementPosition(v) 
local pedd11 = getDistanceBetweenPoints3D(x,y,z,px11,py11,pz11) 
if (pedd11 <=50) then -- max distance 
setElementVelocity(v,2,2,2) -- change her 
end 
end 
end 

Link to comment
https://community.multitheftauto.com/index.php?p=resources&s=details&id=9311
local Shinra = function(p,k,ks) 
local x,y,z = getElementPosition(p) 
setPedAnimation(p,"GHANDS", "gsign2", -1, false, true, false, false) 
--triggerClientEvent("CreateNinjaSound",root,p,"Shinra.mp3") play sound 
  
for k,v in ipairs(getElementsByType("vehicle")) do 
local px11,py11,pz11 = getElementPosition(v) 
local pedd11 = getDistanceBetweenPoints3D(x,y,z,px11,py11,pz11) 
if (pedd11 <=50) then -- max distance 
setElementVelocity(v,2,2,2) -- change her 
end 
end 
end 

Muchisimas gracias :D

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...