Created
February 5, 2018 13:49
-
-
Save jakenotjacob/f1c974daedc7eddfd999b2792351920b to your computer and use it in GitHub Desktop.
lewahhhh pewp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateThread(function() | |
GiveWeaponToPed(PlayerPedId(), "WEAPON_SMG", 10000, false, true) | |
while true do | |
Wait(0) | |
local handle, ped = FindFirstPed() | |
local success | |
repeat | |
local pos = GetEntityCoords(ped) | |
if NetworkHasControlOfEntity(ped) then | |
DrawMarker(1, pos.x, pos.y, pos.z - 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.8, 2.0, 255, 255, 0, 75, 0, 0, 2, 0, 0, 0, 0) | |
end | |
SetSuperJumpThisFrame(PlayerPedId()) | |
whoa() | |
success, ped = FindNextPed(handle) | |
until not success | |
EndFindPed(handle) | |
end | |
end) | |
function whoa() | |
SetTextEntry("STRING") | |
local i_found_you, too = GetEntityPlayerIsFreeAimingAt() | |
local pos = GetEntityCoords(too) | |
local ting = GetEntityVelocity(too) | |
if i_found_you then | |
AddTextComponentString("Found someone!" .. i_found_you .. ting) | |
--if NetworkHasControlOfEntity(too) then | |
-- DrawMarker(1, pos.x, pos.y, pos.z - 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.8, 2.0, 255, 0, 255, 75, 0, 0, 2, 0, 0, 0, 0) | |
--end | |
--if NetworkHasControlOfNetworkId(too) then | |
-- DrawMarker(1, pos.x, pos.y, pos.z - 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.8, 2.0, 0, 255, 255, 75, 0, 0, 2, 0, 0, 0, 0) | |
--end | |
NetworkRequestControlOfEntity(too) | |
SetEntityVelocity(too, ting.x + ((math.random() - 0.5) * 10), ting.y + ((math.random() - 0.5) * 10), ting.z + 10.0) | |
SetEntityAsNoLongerNeeded(too) | |
DrawText(0.40, 0.10) | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment