-
Posts
877 -
Joined
-
Last visited
Everything posted by denny199
-
It won't trigger because the client side script isn't loaded yet, you can fix this by this: server: addEventHandler("onResourceStart",resourceRoot, function () mm55 = createVehicle(560, 1586.3, -1656.8, 28.6) setTimer ( function () triggerClientEvent ( "onStartMusic", root, mm55 ) end, 3000,1) end ) client: local sound = { } addEvent( "onStartMusic", true ) addEventHandler( "onStartMusic", getRootElement(), function(vehicle) if vehicle then local x,y,z = getElementPosition(vehicle) local d = getElementDimension(vehicle) local i = getElementInterior(vehicle) sound[vehicle] = playSound3D( "s.mp3", x, y, z, true) attachElements(sound[vehicle],vehicle,0,0,0) setSoundMaxDistance(sound[vehicle], 200) setElementDimension(sound[vehicle], d) setElementInterior(sound[vehicle], i) end end) Note: it won't be synced if someone else is joining since you are only trigging it for everyone in the server (root)
-
local sound = { } addEvent( "onStartMusic", true ) addEventHandler( "onStartMusic", root, function (vehicle) if vehicle then local x,y,z = getElementPosition(vehicle) local d = getElementDimension(vehicle) local i = getElementInterior(vehicle) sound[vehicle] = playSound3D( "s.mp3", x, y, z, true) attachElements(sound[vehicle],vehicle,0,0,0) setSoundMaxDistance(sound[vehicle], 200) setElementDimension(sound[vehicle], d) setElementInterior(sound[vehicle], i) end end ) It didn't worked because the table element sound[vehicle] was local. Show us your meta.xml
-
What need those eyes do? Freeze you and then let those clowns rape you to death with an alienvirus? Probably man, just use the weirdest stuff you can think of. Trust me, the outcome will be awesome. Haha, allrighty then, I got a weekend the time, guess i'll make it then for everyone
-
What need those eyes do? Freeze you and then let those clowns rape you to death with an alienvirus?
-
Uhmm what's wrong with this one? just click on: "Click here to start download from sendspace" Anyway.. if you want.. suggest me a other website, idk any other good free ones Dropbox, mediafire
-
fuck off with adfly, it redirects you to google
-
Thats optional, is your meta.xml allright, have you tried changing the trigger name from onRegister to "login:onRegister"??
-
Wel, you should debug it: function checkPlayer(playerNick) local result = mysql_query(handler,"SELECT * FROM users WHERE Name = '"..playerNick.."'") outputChatBox ( "Result: "..result ) if( not result) then outputDebugString("MySQL Fail ("..mysql_errno(handler)..") Error:"..mysql_error(handler)) end outputChatBox ("mysql_num_rows: " ..mysql_num_rows(result)) if(mysql_num_rows(result) == 0) then triggerClientEvent("onRegister",getRootElement()) outputDebugString("Should be triggered") else row = mysql_fetch_row(result) outputChatBox ("row: " ..mysql_num_rows(result)) end mysql_free_result(result) end addEventHandler("onPlayerConnect",getRootElement(),checkPlayer)
-
It's because this: if(mysql_num_rows(result) == 0) then It checks if the rows are 0 then trigger it to the client. and kevenz, getLocalPlayer()[localPlayer] on the server? LAL, that doesn't make any sense
-
Haha 42.8% downloading gta V for xbox, trying a xbox emulator out when gtaV is finished
-
Yuno using 0,0, lol dxDrawImage( 0,0, screenWidth, screenHeight, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true)
-
This might be a stupid question but i can't figure it out
denny199 replied to -ffs-AbodyRulez's topic in Scripting
Where's the toHex function, lal https://wiki.multitheftauto.com/wiki/ToHex -
Maybe you can post us on what mta-server you are running, which linux, which OS are you testing with, what have you changed, for example setElementVelocity worked great on my localhost, but on the server it looked laggy, while our ping was 19~10.
-
I'm using the magic card! Go my fellow army, this will raise my attack points to 4000! Your turn (lal, watched some anime)
-
string.lower --for turning a string in this way: "nl" string.upper --for turning a string in this way: "NL"
-
Where's pickupT defined, prat?
-
locations = { [1]= { startX=529, startY=-1884, startZ=3 , endX=612, endY=-1884, endZ=3 }, --ls [2]= { startX=-2920, startY=68, startZ=1,endX=-2913, endY=159, endZ=3 } --sf } function createRandomObject(tableNumber) local startX,startY,startZ = locations[tableNumber].startX,locations[tableNumber].startY,locations[tableNumber].startZ local endX,endY,endZ = locations[tableNumber].endX,locations[tableNumber].endY,locations[tableNumber].endZ local realX, realY, realZ = math.random(startX,endX),math.random(startY,endY),math.random(startZ,endZ) createObject ( 980, realX, realY, realZ ) end Something like that ;p
-
its the uG one. No need for saying noob. Facka noob =) LAL, uG = valhalla.
-
You looking for love puto? Catch them up CJ!
