headscript Posted May 4, 2015 Author Share Posted May 4, 2015 (edited) Wait for the next update which I will release with my extended cheat codes which also includes vehicle spawning   local Zombie = {}Zombie.peds = {}Zombie.howMany = 0function Zombie.unload()endfunction Zombie.tick() if(get_key_pressed(117)) then local playerPed = PLAYER.PLAYER_PED_ID() local player = PLAYER.GET_PLAYER_PED(playerPed) local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed)local Table,Count = PED.GET_PED_NEARBY_PEDS(PLAYER.PLAYER_PED_ID(), 55.0, 1)for k,v in ipairs(Table) doPED.SET_PED_AS_ENEMY(v, true) PED.SET_CAN_ATTACK_FRIENDLY(playerPed,true,true) PED.SET_PED_COMBAT_ABILITY(v, 2) PED.SET_PED_COMBAT_RANGE(v, 500) end end endreturn Zombie  tick: scripts/addins/riftmodule.lua:10: error in function 'GET_PED_NEARBY_PEDS'. argument #1 is 'nil'; 'number' expected. it either crashes or doesnt work  Try that   local Zombie = {} Zombie.peds = {} Zombie.howMany = 0 function Zombie.unload() end function Zombie.tick() if(get_key_pressed(117)) then local playerPed = PLAYER.PLAYER_PED_ID() local player = PLAYER.GET_PLAYER_PED(playerPed) local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed) local Table,Count = PED.GET_PED_NEARBY_PEDS(player, 0, 1) for k,v in ipairs(Table) do PED.SET_PED_AS_ENEMY(v, true) PED.SET_CAN_ATTACK_FRIENDLY(player,true,true) PED.SET_PED_COMBAT_ABILITY(v, 2) PED.SET_PED_COMBAT_RANGE(v, 500) end end end return Zombie   Edited May 4, 2015 by headscript lilw 1 Link to comment Share on other sites More sharing options...
Mortal Posted May 4, 2015 Share Posted May 4, 2015 Hey headscript any pad support keycodes? Link to comment Share on other sites More sharing options...
Kpoda15s Posted May 4, 2015 Share Posted May 4, 2015 Hey, it's Crashing alot and I'm Getting this error message    Link to comment Share on other sites More sharing options...
headscript Posted May 4, 2015 Author Share Posted May 4, 2015 (edited) Hey headscript any pad support keycodes? havent found all yet but i use some in my traindriver mod  Hey, it's Crashing alot and I'm Getting this error message     which has nothing to do with my mod its the .net mod Edited May 4, 2015 by headscript Link to comment Share on other sites More sharing options...
Kpoda15s Posted May 5, 2015 Share Posted May 5, 2015 for real! why did I download your mod then! I keep forgetting things. Link to comment Share on other sites More sharing options...
Xilandro Posted May 5, 2015 Share Posted May 5, 2015 Hm, I have very dumb question (I'm not a programmer, so all my questions are dumb), is there a left\right shift operator? I'm trying this: flags = 1 << 8 and magic doesn't happen =\ Link to comment Share on other sites More sharing options...
headscript Posted May 5, 2015 Author Share Posted May 5, 2015 Hm, I have very dumb question (I'm not a programmer, so all my questions are dumb), is there a left\right shift operator? I'm trying this: flags = 1 << 8 and magic doesn't happen =\ bit.lshift(1,8) Xilandro 1 Link to comment Share on other sites More sharing options...
Xilandro Posted May 5, 2015 Share Posted May 5, 2015 Â bit.lshift(1,8) Â Thank you very much! And I apologize one more time. Link to comment Share on other sites More sharing options...
ILS_Supernova Posted May 6, 2015 Share Posted May 6, 2015 This still doesnt load for me Loads of LUA mods I wanna try but can't , any help would be great, have put LUA.asi in main GTA 5 folder and the scripts folder in same place Link to comment Share on other sites More sharing options...
C-h-a-r-l-y Posted May 6, 2015 Share Posted May 6, 2015 This still doesnt load for me Loads of LUA mods I wanna try but can't , any help would be great, have put LUA.asi in main GTA 5 folder and the scripts folder in same place Use this version it seems to be bug free from what i can tell. Â http://178.62.61.147/index.php?title=Download Link to comment Share on other sites More sharing options...
ILS_Supernova Posted May 6, 2015 Share Posted May 6, 2015  This still doesnt load for me Loads of LUA mods I wanna try but can't , any help would be great, have put LUA.asi in main GTA 5 folder and the scripts folder in same place Use this version it seems to be bug free from what i can tell.  http://178.62.61.147/index.php?title=Download   Still failing for me Link to comment Share on other sites More sharing options...
headscript Posted May 6, 2015 Author Share Posted May 6, 2015   This still doesnt load for me Loads of LUA mods I wanna try but can't , any help would be great, have put LUA.asi in main GTA 5 folder and the scripts folder in same place Use this version it seems to be bug free from what i can tell.  http://178.62.61.147/index.php?title=Download   Still failing for me  any errors in the log? Link to comment Share on other sites More sharing options...
ILS_Supernova Posted May 6, 2015 Share Posted May 6, 2015    This still doesnt load for me Loads of LUA mods I wanna try but can't , any help would be great, have put LUA.asi in main GTA 5 folder and the scripts folder in same place Use this version it seems to be bug free from what i can tell.  http://178.62.61.147/index.php?title=Download   Still failing for me  any errors in the log?   thats the log from asi loader  // GTA V ASI LOADER (build Apr 22 2015) // © Alexander Blade 2015 LIB: "C:\Windows\system32\dsound.dll" => 00007FFB7A440000 API: "DirectSoundCreate" => 00007FFB7A468050 API: "DirectSoundEnumerateA" => 00007FFB7A468150 API: "DirectSoundEnumerateW" => 00007FFB7A445620 API: "DllCanUnloadNow" => 00007FFB7A472780 API: "DllGetClassObject" => 00007FFB7A446DF0 API: "DirectSoundCaptureCreate" => 00007FFB7A467F30 API: "DirectSoundCaptureEnumerateA" => 00007FFB7A468030 API: "DirectSoundCaptureEnumerateW" => 00007FFB7A452770 API: "GetDeviceID" => 00007FFB7A449920 API: "DirectSoundFullDuplexCreate" => 00007FFB7A468170 API: "DirectSoundCreate8" => 00007FFB7A44C7C0 API: "DirectSoundCaptureCreate8" => 00007FFB7A450B50 LOADER: Loading *.asi plugins ASI: Loading "C:\Program Files\Rockstar Games\Grand Theft Auto V\HeistVeh.asi" "HeistVeh.asi" => 00007FFB852D0000 ASI: Loading "C:\Program Files\Rockstar Games\Grand Theft Auto V\jedijosh920.asi" "jedijosh920.asi" => 00007FFB7B6A0000 ASI: Loading "C:\Program Files\Rockstar Games\Grand Theft Auto V\LUA.asi" "LUA.asi" failed to load ASI: Loading "C:\Program Files\Rockstar Games\Grand Theft Auto V\PedSpawner.asi" "PedSpawner.asi" => 00007FFB839B0000 ASI: Loading "C:\Program Files\Rockstar Games\Grand Theft Auto V\VehicleController.asi" "VehicleController.asi" => 00007FFB7C930000 LOADER: Finished loading *.asi plugins Link to comment Share on other sites More sharing options...
headscript Posted May 6, 2015 Author Share Posted May 6, 2015 you got to install vc2013 x64 redist Link to comment Share on other sites More sharing options...
ILS_Supernova Posted May 6, 2015 Share Posted May 6, 2015 I go too the link and download but when it tells me too install, it just says repair or unistall ? Link to comment Share on other sites More sharing options...
ILS_Supernova Posted May 6, 2015 Share Posted May 6, 2015 Got it working thanks guys Link to comment Share on other sites More sharing options...
janimal Posted May 6, 2015 Share Posted May 6, 2015 I have been using  float VEHICLE:GET_VEHICLE_DIRT_LEVEL(v) -- value 0..15  and  VEHICLE:SET_VEHICLE_DIRT_LEVEL(v, float)  in a script recently and they were working fine. Now VEHICLE:GET_VEHICLE_DIRT_LEVEL seems to have stopped returning a float and returns a large integer.  I have reverted to the previous working version of my script and it still doesn't return a float.  example platetxt = VEHICLE.GET_VEHICLE_NUMBER_PLATE_TEXT(v)dirtlevel = VEHICLE.GET_VEHICLE_DIRT_LEVEL(v)print("Vehicle " .. platetxt .. " Dirt Level " .. VEHICLE.GET_VEHICLE_DIRT_LEVEL(v) .. " - " .. dirtlevel) produces.. Vehicle 07VIA999 Dirt Level 1088421888 - 1088421888 I did update both scripthookv and the lua plugin the other day, but I can't remember if it worked since I updated them? Link to comment Share on other sites More sharing options...
duuden Posted May 6, 2015 Share Posted May 6, 2015 how do i remove the menu from the top left corner Link to comment Share on other sites More sharing options...
headscript Posted May 6, 2015 Author Share Posted May 6, 2015 how do i remove the menu from the top left corner remove my .lua files from the scripts folder if you use the sdk Link to comment Share on other sites More sharing options...
Royalgamer06 Posted May 6, 2015 Share Posted May 6, 2015 I got an error at this line: for mod in io.popen([[dir "scripts/libs/" /b ]]):lines() do in main.lua  Do you know why?  Any suggestion? Link to comment Share on other sites More sharing options...
Szabo Posted May 6, 2015 Share Posted May 6, 2015 Hey guys, is anyone able to run VEHICLE.GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX()? Â It returns an error for me: attempt to call field 'GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX' (a nil value) Â It seems the guys calling it from C++ aren't having any problems, so I think the problem is on lua side. I don't have MSVS installed atm to test. Link to comment Share on other sites More sharing options...
StephenSCO Posted May 6, 2015 Share Posted May 6, 2015 I have the same problem with VEHICLE.SET_MOD_KIT(veh,0) comes up with a nil value Link to comment Share on other sites More sharing options...
ffzero58 Posted May 6, 2015 Share Posted May 6, 2015 Hey all, do we have a working Delete Object LUA script working (or even C++)? I'd like to create an object/ped/vehicle spawning tool but would rather create only one instance of it at a time (while browsing the objects) - the DELETE_OBJECT native does not delete it right away. Thanks. Link to comment Share on other sites More sharing options...
Swarm96 Posted May 7, 2015 Share Posted May 7, 2015 Can anyone help me find the natives for creating a playername etc. above a players head? I'm working on some stuff for FiveM. Link to comment Share on other sites More sharing options...
headscript Posted May 7, 2015 Author Share Posted May 7, 2015 Can anyone help me find the natives for creating a playername etc. above a players head? I'm working on some stuff for FiveM.Tried already and I'm also working on fiveM Link to comment Share on other sites More sharing options...
Szabo Posted May 7, 2015 Share Posted May 7, 2015 Â Can anyone help me find the natives for creating a playername etc. above a players head? I'm working on some stuff for FiveM. Tried already and I'm also working on fiveMÂ Hey Headscript, any ideas on VEHICLE.GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX()? Link to comment Share on other sites More sharing options...
headscript Posted May 7, 2015 Author Share Posted May 7, 2015   Can anyone help me find the natives for creating a playername etc. above a players head? I'm working on some stuff for FiveM. Tried already and I'm also working on fiveM Hey Headscript, any ideas on VEHICLE.GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX()? write me a pm with your skypename and we can work it together out ^^ Link to comment Share on other sites More sharing options...
Marqurs Posted May 8, 2015 Share Posted May 8, 2015 my console is not refreshing Link to comment Share on other sites More sharing options...
Levin_ Posted May 8, 2015 Share Posted May 8, 2015 local tele_key = {}local save_pressed=falselocal load_pressed=falselocal player = PLAYER.PLAYER_PED_ID()local player_position = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0.0, 0.0, 1.0)function tele_key.unload()endfunction tele_key.init()endfunction tele_key.tick() if(get_key_pressed(Keys.B))then save_pressed = true elseif save_pressed then save_pressed=false player_position = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0.0, 0.0, 1.0) end if(get_key_pressed(Keys.N))then load_pressed = true elseif load_pressed then load_pressed=false ENTITY.SET_ENTITY_COORDS_NO_OFFSET(player, player_position.x, player_position.y, player_position.z, 0.0, 0.0, 1.0); end endreturn tele_key Could someone help me with this code? I am a total noob and trying to create a simple script to save and load the player position. Other LUA scripts work but this just doesnt do anything. Is there a log file? Â Link to comment Share on other sites More sharing options...
headscript Posted May 8, 2015 Author Share Posted May 8, 2015 local tele_key = {}local save_pressed=falselocal load_pressed=falselocal player = PLAYER.PLAYER_PED_ID()local player_position = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0.0, 0.0, 1.0)function tele_key.unload()endfunction tele_key.init()endfunction tele_key.tick() if(get_key_pressed(Keys.B))then save_pressed = true elseif save_pressed then save_pressed=false player_position = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0.0, 0.0, 1.0) end if(get_key_pressed(Keys.N))then load_pressed = true elseif load_pressed then load_pressed=false ENTITY.SET_ENTITY_COORDS_NO_OFFSET(player, player_position.x, player_position.y, player_position.z, 0.0, 0.0, 1.0); end endreturn tele_key Could someone help me with this code? I am a total noob and trying to create a simple script to save and load the player position. Other LUA scripts work but this just doesnt do anything. Is there a log file? Â Â no logfile but errors come up in the console also you should get the playersposition every tick / or before you save it as i just see Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now