Jump to content

Triggering OnNextMapRequest


Recommended Posts

Posted

Hello, i've done a script based on nextreme's pannel functions and i know i need to trigger them on the racevoting, but when triggering the events to the race to set a map with the script (the script is supposed to make the nextmap cooler) i never did it and i cant find in the wiki how to do it.. Any idea?

Thanks in advance

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Posted

Ok, i have read some things arround and i added this on the racevoting_server, but it doesnt does nothing at all.

function OnNextmapRequest ( mapName, theplayer, Buymap) 
triggerEvent("onNextMapRequest",thePlayer,mapName) 
    --If event == "OnNextMapRequest" is called then 
    g_ForcedNextMap = mapName 
end 

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

  • Moderators
Posted

yes you don't even have a handler omg -_-.

Man you really need to stop using other people their script parts.

GO read wiki mta!!!!

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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