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
--- CLIENT --- | |
local DroppedWeapons = {} | |
RegisterCommand('dropweapon', function() | |
local dict = 'anim@am_hold_up@male'; local name = 'shoplift_mid' | |
lib.requestAnimDict(dict) | |
TaskPlayAnim(PlayerPedId(),dict, name, 5.0, 1.5, -1, 48, 0.0, 0, 0, 0) | |
Wait(500) | |
local weaponEntity = GetCurrentPedWeaponEntityIndex(cache.ped) |
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
-- I didnt fully finish this, I planned for it to be like configable with different locations and stuff but 🤷🏻♂️ | |
AddTextEntry('BLUNT_HELP_PC', '~INPUT_FRONTEND_X~ Smoke\n~INPUT_FRONTEND_CANCEL~ Exit') | |
AddTextEntry('BLUNT_ENTER_PC', 'Enter') | |
local sSmokingActivityData = { | |
eCurrentState = 'SMOKING_ACTIVITY_STATE_INIT' | |
} | |
local Debug = true | |
local serverBD = { --TODO: Sync this data? |
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
--* idc if you use this in public / private script *-- | |
--* But if you use *most / all* of my code credit would be nice 💖 *-- | |
local MaxCars = 20 --Max is a HARD CAP OF 20, only make this number lower! | |
local function func_7050(string) | |
local scaleform = RequestScaleformMovie(string) | |
repeat | |
Wait(100) | |
until HasScaleformMovieLoaded(scaleform) | |
return scaleform |
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
local function CallScaleformMethod(scaleform, method, ...) --? i dont remember where i stole this function from but, credit to them lol | |
local t | |
local args = { ... } | |
BeginScaleformMovieMethod(scaleform, method) | |
for k, v in ipairs(args) do | |
t = type(v) | |
if t == 'string' then | |
PushScaleformMovieMethodParameterString(v) | |
elseif t == 'number' then | |
if string.match(tostring(v), "%.") then |