-
Posts
1,248 -
Joined
-
Last visited
Everything posted by WhoAmI
-
addCommandHandler getPedOccupiedVehicle getElementModel attachElements
-
Choose hosting, which has machine in France/Geremany.
-
Just save the skin before player enters the marker by using setElementData.
-
[SOLVED] Random info pulled from XML/Getting Players Veh ID
WhoAmI replied to TheGamingMann's topic in Scripting
after vehicle variable put if if ( vehicle ) then -
But wait, how do you want to color this message when you did it already by using HEX codes?
-
[SOLVED] Random info pulled from XML/Getting Players Veh ID
WhoAmI replied to TheGamingMann's topic in Scripting
I don't understand you. What error? What car? -
Put lane and check if those colors are right outputChatBox ( red .. green .. blue )
-
This givePlayerBlood function is in resource that you are working in? If no, you have to export that function.
-
In admin panel or in your own script?
-
[SOLVED] Random info pulled from XML/Getting Players Veh ID
WhoAmI replied to TheGamingMann's topic in Scripting
Change 'source' to 'localPlayer' everywhere in this function. -
[SOLVED] Random info pulled from XML/Getting Players Veh ID
WhoAmI replied to TheGamingMann's topic in Scripting
No problem, have fun with scripting. -
[SOLVED] Random info pulled from XML/Getting Players Veh ID
WhoAmI replied to TheGamingMann's topic in Scripting
Just change into local id = getElementModel ( vehicle ) -
getPlayerNametagColor ( source )
-
Just do a 'for' and get player elements, then put in it dxDrawText with automatically changing position depends of for's key.
-
Well, you want to enable It on scoreboard? Got to admin panel, go to resources tab, select scoreboard resource and just change settings of this resource.
-
Well, this is more complicated script. For that you need some database knowledge and your LUA would have to be more professional.
-
Problem z teleportującym przyciskiem
WhoAmI replied to mommytellme's topic in Pomoc ze skryptami i programowaniem w Lua
GUIEditor = { button = {}, window = {} } okienko = guiCreateWindow(579, 20, 221, 487, "Teleportujące budki", false) guiWindowSetSizable(okienko, false) guiSetVisible ( okienko, false ) sfd = guiCreateButton(28, 29, 171, 15, "San Fierro Downdown", false, okienko) gs = guiCreateButton(28, 44, 171, 15, "Grove Street", false, okienko) addEventHandler("onClientGUIClick", getRootElement(), grovestreet) function grovestreet ( player ) if source == gs then setElementPosition ( localPlayer, 2506, -1661, 13 ) end end addCommandHandler( "otworz", function ( ) guiSetVisible ( not guiGetVisible ( okienko ) ) showCursor ( not isCursorShowing ( ) ) end ) -
I'm not sure that would work couse I'm doin it for first tiem, but cameraPosition = { -- x, y, z, lookAtX, lookAtY, lookAtZ { 0, 0, 0, 1, 1, 1 }, { 1, 1, 1, 2, 2, 2 } } minutes = 5 -- after how many minutes cameraMatrix should change addEventHandler ( "onPlayerJoin", root, function ( ) fadeCamera ( source, true ) local randomPos = cameraPosition [ math.random ( #cameraPosition ) ] setCameraMatrix ( source, randomPos [ 1 ], randomPos [ 2 ], randomPos [ 3 ], randomPos, [ 4 ], randomPos [ 5 ], randomPos [ 6 ] ) local timer = setTimer ( function ( ) local table = cameraPosition [ math.random ( #cameraPosition ) ] setCameraMatrix ( source, table [ 1 ], table [ 2 ], table [ 3 ], table, [ 4 ], table [ 5 ], table [ 6 ] ) end, minutes * 60000, 0 ) setElementData ( source, "joiningTimer", timer ) end ) addEventHandler ( "onPlayerLogin", root, function ( ) fadeCamera ( source, false ) local timer = getElementData ( source, "joiningTimer" ) if ( isTimer ( timer ) ) then killTimer ( timer ) end end )
-
I'm not sure, but it looks like this local color = tonumber ( 212, 201, 174, 255 ) addEventHandler ( "onClientPlayerDamage", root, function ( ) color = tocolor ( 255, 0, 0, 255 ) setTimer ( function() color = tocolor ( 212, 201, 174, 255 ) end, 5000, 1 ) end ) addEventHandler ( "onClientPlayerWeaponFire", root, function ( ) color = tocolor ( 107, 6, 82, 255 ) setTimer ( function() color = tocolor ( 212, 201, 174, 255 ) end, 5000, 1 ) end ) addEventHandler ( "onClientRender", root, function ( ) dxDrawColorText ( getPlayerName(player):gsub("_", " ") .. " (".. id .. ") ", sx-w, sy - offset, sx, sy - offset, color, textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false, false, false ) end )
-
It doesn't. It just shows the circle on the ground. If you want to create marker, draw circle, put colshape on it and check if someone got into circle by using onColShapeHit.
-
Well, how about money? Just want to know it in public, then I'd think about it.
-
That's too hard for you. You shall start from easier things. Start from beginning.