Michcio Posted July 26, 2010 Share Posted July 26, 2010 Hi! I have a client side of police script, but I need a server side of this script. Please help me with this. Client side: local screenWidth, screenHeight = guiGetScreenSize() function vehicleLabel() for k,v in pairs(getElementsByType("player")) do if getElementData(getLocalPlayer(),"policja") == true then if isElementOnScreen(v) then if isPedInVehicle(v) then local x,y,z=getElementPosition(v) local X1,Y1 = getScreenFromWorldPosition(x,y,z) if X1 and Y1 then local px,py,pz=getElementPosition(getLocalPlayer()) local dystans=getDistanceBetweenPoints3D(x,y,z,px,py,pz) local car = getPedOccupiedVehicle( v ) if car then local speed = math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(car)) * 100 * 1.61) if speed then if v ~= getLocalPlayer() then if getVehicleController(car) == v then if dystans < 45 then dxDrawText("Prędkość: "..speed.." km/h",X1,Y1, screenWidth, screenHeight,tocolor(0,0,255,255),1.5,"default","left","top",false,false,false) end end end end end end end end end end end addEventHandler("onClientRender",getRootElement(),vehicleLabel) Link to comment
Castillo Posted July 26, 2010 Share Posted July 26, 2010 what u mean with "server side" script?? Link to comment
Michcio Posted July 26, 2010 Author Share Posted July 26, 2010 Type of that script is Client and I want server. Sorry because I'm Polish and my english is poor Link to comment
Castillo Posted July 26, 2010 Share Posted July 26, 2010 Type of that script is Client and I want server. Sorry because I'm Polish and my english is poor im asking what kind of server side... btw what its the client? i dont get it. Link to comment
Kayl Posted July 27, 2010 Share Posted July 27, 2010 He means he played on a server, grabbed the clientside version of a script and would like us to recreate the serverside part in order to recreate (may I dare say steal) the complete feature. Link to comment
Castillo Posted July 27, 2010 Share Posted July 27, 2010 He means he played on a server, grabbed the clientside version of a script and would like us to recreate the serverside part in order to recreate (may I dare say steal) the complete feature. thats what i suposed at first look. Link to comment
Michcio Posted July 27, 2010 Author Share Posted July 27, 2010 Yes thats true. I found this in Mods catalog. I need that script or something like this. Please help. Link to comment
Castillo Posted July 27, 2010 Share Posted July 27, 2010 Yes thats true. I found this in Mods catalog. I need that script or something like this. Please help. Well that means steal, why should us help u if u stealing scripts from other servers...? Link to comment
Michcio Posted July 27, 2010 Author Share Posted July 27, 2010 Please help me create other script like this. Link to comment
50p Posted July 27, 2010 Share Posted July 27, 2010 Please help me create other script like this. Create it yourself and consider yourself as a theft. Link to comment
Dark Dragon Posted July 27, 2010 Share Posted July 27, 2010 Sorry we do not support this way to obtain scripts. Closed Link to comment
Recommended Posts