
Baseplate
Members-
Posts
1,417 -
Joined
-
Last visited
Everything posted by Baseplate
-
Don't use Money functions in client-sided +all wrong X-SHADOW.
-
I was about to ask him about the onResourceStart but forgot... Why are you using onResourceStart anyways? as you did add an event to it..
-
Try this if (getPlayerTeam(hitElement) == getTeamFromName("Miners")) then
-
if getElementType(hitElement) =="player" and getTeamName (getPlayerTeam(hitElement)) == "Workers" then I didn't use source..., source in onMarkerHit is the marker that got hit, hitElement is the element that did hit that marker.
-
I didn't say it won't work, but he could make it in a better structure, cause trigger events like createLoc while he can just use createLoc() would cause some lag...
-
locations = { {459.93146, 888.78650, -27.64281}, {507.28488, 971.90436, -24.47141}, {664.53302, 721.46564, -4.02670}, } addEvent ("createLoc", true) addEventHandler ("createLoc", root, create) function create() local x, y, z = unpack ( locations [ math.random ( #locations ) ] ) if getTeamName (getPlayerTeam(source)) == "Workers" then marker = createMarker (x, y, z, "cylinder", 2, 255, 255, 0, 255) blip = createBlipAttachedTo( marker, 0, 2, 0, 250, 0, 170 ) end end addEventHandler ("onResourceStart", root, create) function onHit(hitElement) if getElementType(hitElement) =="player" and getTeamName (getPlayerTeam(hitElement)) == "Workers" then triggerEvent ("pay", getRootElement(), onHit) destroyElement (blip) destroyElement (marker) triggerEvent ("createLoc", root, onHit) end end addEventHandler ("onMarkerHit", root, onHit) I'm suggesting to have a re-look on your script, it's a real mess and I just helped with your error...
-
International Gaming Hosting <ig-host.com>
Baseplate replied to Erik_Wood's topic in Hosting solutions
Wait....are you saying that I need to pay 10USD per a slot?? -
Nice mate, really a great job!
-
You sure you clicked twice on the Button?? and the window seems to be not visible you sure that it's visible?
-
The wiki isn't working fine here, lags as hell or doesn't work...
-
First, wrong board. Second, Check this out
-
Yeah that should be just fine anyways...
-
90GB Download?? O_o maybe you mean 90MB which still too much, you must be mad or something to have a 90MB Download at a server, it should be working but some lag strikes can just attack...
-
and line 16, change the function name to other one.
-
You can see that right?
-
Aw I apologize, thanks pain.
-
function funkcia() if (isPlayerDead(localPlayer)) then guiSetVisible(window1, not guiGetVisible(window1)) showCursor(guiGetVisible(window1)) end bindKey ("F1", "down", funkcia ) or you can use isPedDead but it's server-sided so you'll have to trigger events.
-
Try to lower the setElementPosition of intoMarker's z pos by 1. like use 1001 instead of 1002 local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) setElementInterior(outMarker,5) function teleport( hitElement ) if ( source == intoMarker ) and (getElementType( hitElement ) == "player") then setElementPosition(hitElement,375.7626953125, -131.25, 1001) -- this one, changed the z pos to 1001 setElementInterior(hitElement,5) elseif ( source == outMarker ) and (getElementType( hitElement ) == "player") then setElementPosition(hitElement,2099.5078125, -1806.6220703125, 14) setElementInterior(hitElement,0) end end end addEventHandler("onMarkerHit", root, teleport)
-
He's right, I did checked that and got this. This domain is authorized to be using WHMCS.
-
addEventHandler("onClientGUIClick", GUIEditor.button[3], function() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end )
-
I do know meta.xml but I just sometimes see people using the xml file as client so followed that.
-
Hello, well I'm actually having some problemos with getting the text from an xml file and using guiSetText with a memo, here's my code c.lua GUIEditor.memo[2] = guiCreateMemo(169, 27, 395, 194, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(10, 27, 156, 219, false, GUIEditor.window[1]) topics = guiGridListAddColumn(GUIEditor.gridlist[1], "Topics", 0.9) rulesRow = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], rulesRow, topics, "Rules", false, false ) if (guiGridListGetSelectedItem (GUIEditor.gridlist[1]) == rulesRow) then local xmlRules = xmlLoadFile ( "rules.xml" ) local Rulesnode = xmlFindChild( xmlRules, "rules", 0 ) local RulesValue = xmlNodeGetValue ( Rulesnode ) guiSetText (GUIEditor.memo[2], tostring ( RulesValue ) ) rules.xml <rules> Under construction for now. </rules> meta.xml <meta> <script src="c.lua" type="client"/> <file src="rules.xml" type="client"/> </meta>
-
I'm sure we have to vote for MTA SA anyways ;3 else we're retarded pepz.
-
Impressive job mate, really nice
-
I already asked for help for the same thing. Check the topic Here