-
Posts
1,248 -
Joined
-
Last visited
Everything posted by WhoAmI
-
No problem.
-
dxDrawImage ( -4, yd-4, 8, 8, "playerBlip.png", rot3, 0, 0, tocolor(255,255,255,255), true )
-
http://bugs.mtasa.com/view.php?id=7948
-
Try the 3rd argument of getElementRotation.
-
Use db functions instead dbConnect dbQuery dbExec dbFree
-
function rewardOnWasted ( killer, _, bodypart ) if ( killer ~= source ) then if bodypart == 9 then triggerServerEvent("addUserEXP", resourceRoot, killer, 10) else triggerServerEvent("addUserEXP", resourceRoot, killer, 5) end end end addEventHandler ( "onClientPlayerWasted", root, rewardOnWasted )
-
It's not always 0 z = getGroundPosition( x, y, z )
-
Serverside? Not clientside? Check this s-side: local vehicles = { [ 447 ] = true, -- SEASPARROW ID } addEventHandler ( "onVehicleEnter", root, function ( thePlayer, seat ) if ( vehicles [ getElementModel ( source ) ] ) then toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end end )
-
Because minimal x and y is -1500 and maximum 1500. Try this items = { "Water Bottle", "Tea", "Fence", 'Morphine', "Pizza", "Chicken Burger", "Pepsi", "Fanta", "Engine", "Wheel" } function getXY( ) return math.random(-1500, 1500), math.random(-1500, 1500), 0 end function spawnObjects( ) local x, y, z = getXY( ) z = getGroundPosition( x, y, z ) local object = createObject( 1271, x, y, z + 0.3 ) setElementData( object, "item", items[ math.random( #items ) ] ) createBlip( 1, x, y, z ) setTimer( spawnObjects, 3000, 1 ) end spawnObjects( )
-
No problem.
-
Wait some time. Check Spam box.
-
Don't use Walid's code. You don't have to change anything in this resource. Yea, upload it online to some WWW server from hosting.
-
I couldn't find blowfish for LUA, but there is this function in PHP, so you can use callRemote and transfer password to PHP, and return to resource crypted password.
-
If you are using apache on VPS you have to configure mail server on it. I had the same problem. If you have mail configured, check spam. I've used the same resource and you don't have to change anything in it. If it doesn't work, it's caused by WWW server.
-
IPB password are hashed like that md5 ( md5 ( salt ) .. md5 ( password ) )
-
medicVehicles = { [416]=true, [563]=true } medicTeam = { [Médicos]=true } function medicenterVehicle ( player, seat, jacked ) if ( medicVehicles[getElementModel ( source )] and ( not medicTeam[getPlayerTeam ( player )] ) and seat == 0 ) then cancelEvent() outputChatBox ( "Debes de ser un médico para poder entrar al vehículo.", player ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), medicenterVehicle )
-
I've made something server Files = { -- id model, txd path, dff path { 0, "test.txd", "test.dff" } }; Content = { }; addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in pairs ( Files ) do local id, txd, dff = unpack ( v ); Content [ id ] = { }; -- getting content of TXD local txdFile = File ( txd, true ); if txdFile then local content = txdFile:read ( txdFile:getSize ( ) ); Content [ id ] [ "txd" ] = content; end -- getting content of DFF local dffFile = File ( dff, true ); if dffFile then local content = dffFile:read ( dffFile:getSize ( ) ); Content [ id ] [ "dff" ] = content; end end end ); addEvent ( "server:getContent", true ) addEventHandler ( "server:getContent", root, function ( ) triggerClientEvent ( source, "client:applyContent", source, Content ); end ); client addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) triggerServerEvent ( "server:getContent", localPlayer ); end ); addEvent ( "client:applyContent", true ); addEventHandler ( "client:applyContent", root, function ( Content ) for model, c in pairs ( Content ) do local txd, dff = c["txd"], c["dff"]; local loadedTXD = EngineTXD ( txd ); local loadedDFF = EngineDFF ( dff ); if loadedTXD and loadedDFF then loadedTXD:import ( model ); loadedDFF:replace ( model ); end end end ); I really don't know if it will work, but you can try. To make it work you have to turn on OOP in meta.
-
Use this script instead, much simplier. https://community.multitheftauto.com/ind ... s&id=10163 Documentation: https://wiki.multitheftauto.com/wiki/Resource:Blur_box
-
If you have made this script you have enough knowladge to fix it by yourself, m8.
-
What about getting content of .txd and .dff file server-side, and while player connects trigger it to clientside and load them as 'raw_data'? engineLoadTXD engineLoadDFF
-
What's more, 'pairs' is a little bit faster than 'ipairs'. It was proved in some thread few mouths ago.
-
Replace localPlayer to v.
-
Yea, that's why it doesn't work. Player has to enter it.
-
Try to replace 'source' with 'player'.