5kmmoore Posted July 12, 2015 Share Posted July 12, 2015 How can you display text above the HUD map in GTA LUA? Link to comment Share on other sites More sharing options...
-Baart Posted July 12, 2015 Share Posted July 12, 2015 gui.NotifyAboveMap ( "Your text here", true ) Link to comment Share on other sites More sharing options...
5kmmoore Posted July 12, 2015 Author Share Posted July 12, 2015 I tried this but I get an error message. The code I used is below: time_circuits = ScriptThread("time_circuits_on_vehicle_mod") function time_circuits:Run() do if IsKeyDown(KEY_F10) then gui.NotifyAboveMap("Time Circuits On", true) end self:wait(50) end end function time_circuits:OnError() print("Time Circuits Thread caused an error!") self:reset() end time_circuits:Register() Link to comment Share on other sites More sharing options...
5kmmoore Posted July 12, 2015 Author Share Posted July 12, 2015 Error says Expected number got Boolean Link to comment Share on other sites More sharing options...
5kmmoore Posted July 13, 2015 Author Share Posted July 13, 2015 How can you play External Audio Files with GTAV LUA? Link to comment Share on other sites More sharing options...
ShrewdSpirit Posted July 13, 2015 Share Posted July 13, 2015 Error says Expected number got Boolean Somewhere in your code you are passing a boolean (true/false) to a function which accepts numbers instead How can you play External Audio Files with GTAV LUA? You can't AFAIK. But you can put your audio files in UserMusic directory and switch to Self Radio from code Link to comment Share on other sites More sharing options...
5kmmoore Posted July 13, 2015 Author Share Posted July 13, 2015 How do you switch to Self Radio from code? Link to comment Share on other sites More sharing options...
ShrewdSpirit Posted July 13, 2015 Share Posted July 13, 2015 natives.AUDIO.SET_RADIO_TO_STATION_INDEX(index) index is radio station index, for self radio it should be 19 I guess, but not sure though or you can use: natives.AUDIO.SET_RADIO_TO_STATION_NAME(name) Link to comment Share on other sites More sharing options...
5kmmoore Posted July 13, 2015 Author Share Posted July 13, 2015 Could I add my on sound effects to the GTA V PC game? Link to comment Share on other sites More sharing options...
ShrewdSpirit Posted July 14, 2015 Share Posted July 14, 2015 You can always check the natives database to see if there's a native function that can do the job for you http://www.dev-c.com/nativedb/ For calling any natives from Lua you just write: natives.<Native namespace>.<Native name or hash>( ... ) For example, for calling "GET_PLAYER_PED" which is in PLAYER namespace you just do: local ped = natives.PLAYER.GET_PLAYER_PED(playerID) There are 5300 native functions! So there might be a function that can play an audio file or sound effect for you. Link to comment Share on other sites More sharing options...
Freakyy Posted July 14, 2015 Share Posted July 14, 2015 How can you play External Audio Files with GTAV LUA? That's not possible, (yet) ShrewdSpirit 1 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