 
        xXMADEXx
Members- 
                Posts2,718
- 
                Joined
- 
                Last visited
Everything posted by xXMADEXx
- 
	If you want to set a world object non-breakable then you'll need to delete it using removeWorldModel and map it back.
- 
	Thats because your setting the marker interior to 900 and the player to 901...
- 
	Eh animations are to difficult to do... And thats not a bug. It won't show the same message twice. I did it to prevent a bug that would have occurred. Thanks
- 
	for username and password your using guiGetText correct? If so then use "outputChatBox ( username.." "..password )" on the server side.
- 
	no, dxDrawText returns true/false. You need to make the text into a variable.
- 
	How did you trigger it from the client side? because, the error is saying that username isn't defined.
- 
	8x 16 Slot servers for free! gta-servers.net giveaway!xXMADEXx replied to =FAS=Shigawire's topic in Hosting solutions We apologize, but we don't give any free servers anymore, you may get a free server for 48hrs tho! oh, woops didn't see that.
- 
	Well, It can be in-game and in the web. I dont really care ;p Its sorta impossible to make it IG, and why not just use Filezilla?
- 
	For custom objects.. So say you created an object and it can break when someone hits it then you would put setObjectBreakable ( varible, false ) and then it wouldn't break when someone hits it.. Example: object = createObject ( 980, 0, 0, 10 ) -- I know objct 980 isn't breakable but idk what one is setObjectBreakable ( object, false )
- 
	You can, but you need to define it in a variable.
- 
	what? Try this: function WeaponPoints() local WeaponPoints = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ) end addEventHandler( "onClientRender", root, WeaponPoints ) addEventHandler( "onClientRender",root, function() local skills = guiGetText(GUIEditor.label[2]) if skills then local Point = tonumber(skills) if Point == 100 then guiSetText (GUIEditor.label[3],"Level: 1") end end end )
- 
	Arguments for outputChatBox are different on client side, local myMarker = createMarker ( -710.25555419922, 962.29443359375, 12.410507202148, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", myMarker, function ( p ) if ( p == localPlayer ) then outputChatBox ( " hi " .. getPlayerName(p), 100, 100, 100, true ) end end)
- 
	Version 1.3: Changelog: - Added HEX color code support - Added a optional time argument Syntax (server) bool sendClientMessage ( string message, player thePlayer [, int r=255, int g=255, int b=255, bool topBar=true, int time=8 ] ) [b]Required Arguments[/b] message: The text that will be applied to the bar. thePlayer: The player that the message will be sent to (use root for all) [b]Optional Arguments[/b] r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of greeen you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) topBar: If set to true, then the message will send to the top bar, otherwise to the bottom bar time: The time the message will stay on the screen [b](unless the number of messages hits the maximum) (in seconds)[/b] Syntax (client) bool sendClientMessage ( string message [, int r=255, int g=255, int b=255, bool topBar=true, int time=8 ] ) [b]Required Arguments[/b] message: The text that will be applied to the bar. [b]Optional Arguments[/b] r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of greeen you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) topBar: If set to true, then the message will send to the top bar, otherwise to the bottom bar time: The time the message will stay on the screen [b](unless the number of messages hits the maximum) (in seconds)[/b] Examples: -- Example 1: addEventHandler ( "onPlayerQuit", root, function ( ) exports["TopBarChat"]:sendClientMessage ( getPlayerName ( source ).." has left the server.", root, 255, 100, 100, true, 8 ) end ) -- Example 2: addEventHandler ( "onPlayerJoin", root, function ( ) exports["TopBarChat"]:sendClientMessage ( getPlayerName ( source ).." has connected to the server!", root, 255, 100, 100, false, 10 ) end ) I am still taking suggestions. Next version (if there is one) will be the last, unless a bug is found.
- 
	( ( Not Tested ) ) local blip = { } addEventHandler ( "onPlayerSpawn", root, function ( ) if ( not isElement ( blip [ source ] ) ) then blip [ source ] = createBlipAttachedTo ( source ) end local theTeam = getPlayerTeam ( source ) if ( not theTeam ) then return end if ( getTeamName ( theTeam ) == "Police" ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( source, r, g, b ) setBlipColor ( blip [ source ], r, g, b, 255 ) end ) addEventHandler ( "onResourceStart", resourceRoot, function () for k, v in ipairs ( getElementsByType("player") ) do if ( not isElement ( blip [ v ] ) ) then blip [ v ] = createBlipAttachedTo ( v ) end local theTeam = getPlayerTeam ( v ) if (not theTeam) then return end if ( getTeamName ( theTeam ) == "Police" ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( v, r, g, b ) setBlipColor ( blip [ v ], r, g, b, 255 ) end end ) function destroyPlayerBlip( ) if isElement ( blip [ source ] ) then destroyElement ( blip [ source ] ) end end addEventHandler ( "onPlayerQuit", root, destroyPlayerBlip ) addEventHandler ( "onPlayerWasted", root, destroyPlayerBlip ) addEventHand setTimer ( function ( ) for i,v in ipairs ( getElementsByType ( "player" ) ) do if isElement ( blip [ v ] ) then destroyElement ( blip [ v ] ) end local theTeam = getPlayerTeam ( v ) if (not theTeam) then return end if ( getTeamName ( theTeam ) == "Police" ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( v, r, g, b ) setBlipColor ( blip [ v ], r, g, b, 255 ) end end, 30000, 0 )
- 
	8x 16 Slot servers for free! gta-servers.net giveaway!xXMADEXx replied to =FAS=Shigawire's topic in Hosting solutions I'd like a server, please. Location:Anywhere E-Mail: [email protected]
- 
	wow, really cool!
- 
	Will be added in v1.3.
- 
	Huh, good eye.
- 
	onVehicleExplode -- Event destroyElement
- 
	It only supports RGB at the moment. Next update ill make it support HEX.
- 
	You can look up interior coordinates on Google.
- 
	You'll need a GUI first of all... Then, make the marker create on the client side, and when he hits the server triggers a default MTA event called "onClientMarkerHit."
- 
	You could make it so runcode will only work on certain accounts...
