Jump to content

import Font to Race


brad

Recommended Posts

An example would be: I want to change the source of drawText showing the map name in the pro race gamemode want to know how the place you first imported to the name of his source to drawText showing the map name as if he brought the mta 1.1 defautl

Link to comment

server side

function send() 
local currentMap = exports.mapmanager:getRunningGamemodeMap() 
local mapname = getResourceInfo(currentMap, "name") or getResourceName(currentMap) 
 triggerClientEvent ( "name", getRootElement(), name ) 
end 
addEvent("onMapStart",true) 
addEventHandler("onMapStart",getRootElement(),send) 

client side

local gui =guiCreateLabel( float x, float y, float width, float height, "", true) --x,y,width and height are numbers between 0-1 
function draw(name) 
guiSetText(gui,name) 
end 
addEvent("name",true) 
addEventHandler("name",getRootElement(),draw) 

Link to comment

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...