-
Posts
589 -
Joined
-
Last visited
Everything posted by mjau
-
i want script anti helicopter kill and anti cars kill
mjau replied to IIIIlllllIII's topic in Scripting
jr10 it was a post to say english would be good then he posted so i edited it to NVM srry -
kk tnx but only waht i need is someway to make the text white when i dont use colors again now its is beach i will not run freeram when my sever is finisht it is a RPG
-
double post did it to ask if it is even possible since mta bugs appear everhywhere i got an idea i bind key and when i press it a marker appears and gets destroyed by setTimer after 10 sec would that work ?
-
when u did debugscript 3 try restarting the script do eventual commands youve added and see
-
Anyway this script dont work im to lazy to look but bad argument at addEventHandler line 32 and 33
-
tried and your right i dont see it but i know it is possible cuz SAES did sumething like that before they got new ways of recruitng people
-
i dont know how to do such things could u ? and no i dont get any errors
-
if you look the movehim function is there it sets him to andro interior but dont work
-
function markerattach ( player ) local vehicle = getPedOccupiedVehicle(player) local Marker = createMarker ( 0, 0, 0, "arrow", 1, 255, 0, 0, 170 ) local colTube = createColTube ( 0, 0, 0, 1, 1 ) attachElements ( Marker, vehicle, 0, 0, 5 ) attachElements ( colTube, Marker, 0, 0, 5 ) function movehim(hitElement) if getElementType(hitElement) ~= "player" then return end setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end addEventHandler( "onColShapeHit", colTube, movehim ) end addCommandHandler ( "attach", markerattach ) No erros but nothig happens when i enter the marker
-
ok so then how can i attach a colshape to the andromada
-
ehh if u didnt knew attached markers dont work thats why i am asking had something like that before but didnt work
-
marker shows but nothing happens when i enter it
-
tried and dont work heres my full code function markerattach ( player ) local vehicle = getPedOccupiedVehicle(player) local Marker = createMarker ( 0, 0, 0, "arrow", 1, 255, 0, 0, 170 ) attachElements ( Marker, vehicle, 0, 0, 2 ) addEventHandler( "onMarkerHit", Marker, movehim ) function movehim(hitElement) if getElementType(hitElement) ~= "player" then return end setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end end addCommandHandler ( "attach", markerattach ) Edit tried another thing stil dont work function markerattach ( player ) local vehicle = getPedOccupiedVehicle(player) local Marker = createMarker ( 0, 0, 0, "arrow", 1, 255, 0, 0, 170 ) attachElements ( Marker, vehicle, 0, 0, 4 ) addEventHandler("onMarkerHit", Marker, test function test(hitElement) if getElementType(hitElement) ~= "player" then return end setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end) end addCommandHandler ( "attach", markerattach )
-
That just attahced the marker it wont work after ive attached it More explained I have an andromada and i want to create a arrow behind it and when a player hit that arrow they get set into the andromada interior I have the code to set the interior but the marker dont work when it is attahced
-
nonameman i guess you use guieditor and the memo atumaticly gets a scrllpane when its needed
-
tnx i did too but i had player colors and freeraom resource so player colors causes it and freeraom now i dont run any of those
-
hmm maybe its the freeraom resource
-
no it dont work jsut turns out white
-
Hi i have a server running but somethinng i noticed is if i do example #ff00000 hello itstill turns out white not red as it should is it a resource i should download for this cuz it works on almost every server ive been in
-
How can i somehow atach a marker who still works or a colshape to a vehicle i want the marker to teleport me inot the andro interior and ive aleready fixed that but the attached marker dont work
-
srry and i copied itfrom wiki cuz i didnt know how to use it but i edited it now so its server side but tell me how i use isObjectInAclgroup
